Skip to content

Commit

Permalink
Added dedicated target, tagfile for downstream libscran dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jun 24, 2024
1 parent 623d2db commit 8fe8f21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ cmake_minimum_required(VERSION 3.14)

project(scran_utils
VERSION 1.0.0
DESCRIPTION "Aggregate expression values across cells"
DESCRIPTION "Core utilities for libscran"
LANGUAGES CXX)

add_library(scran_utils INTERFACE)
target_compile_features(scran_utils INTERFACE cxx_std_17)
target_include_directories(scran_utils INTERFACE include)
add_library(scran_core_utils INTERFACE)
target_compile_features(scran_core_utils INTERFACE cxx_std_17)
target_include_directories(scran_core_utils INTERFACE include)

if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
endif()

add_library(scran_core_utils_internal INTERFACE)
target_compile_features(scran_core_utils_internal INTERFACE cxx_std_17)
target_include_directories(scran_core_utils_internal INTERFACE include/scran)
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -2375,7 +2375,7 @@ TAGFILES =
# tag file that is based on the input files it reads. See section "Linking to
# external documentation" for more information about the usage of tag files.

GENERATE_TAGFILE =
GENERATE_TAGFILE = html/scran_core_utils.tag

# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
# the class index. If set to NO, only the inherited external classes will be
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ macro(create_test name)
target_link_libraries(
${name}
gtest_main
scran_utils
scran_core_utils
)

if(DO_CODE_COVERAGE)
Expand Down

0 comments on commit 8fe8f21

Please sign in to comment.