Skip to content

Commit

Permalink
Link to fmt and spdlog header-only targets
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed May 21, 2024
1 parent 88c87c3 commit d2f6e8c
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ target_sources(
${CMAKE_CURRENT_SOURCE_DIR}/numeric_utils_impl.hpp
${CMAKE_CURRENT_SOURCE_DIR}/utils_impl.hpp)

target_link_libraries(modle_common INTERFACE project_options project_warnings fmt::fmt)
target_link_libraries(modle_common INTERFACE project_options project_warnings fmt::fmt-header-only)

target_link_system_libraries(
modle_common
Expand Down
2 changes: 1 addition & 1 deletion src/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ target_link_libraries(
PRIVATE project_options
project_warnings
Modle::common
fmt::fmt)
fmt::fmt-header-only)
target_link_system_libraries(modle_config PUBLIC absl::strings)

target_include_directories(modle_config PUBLIC include/)
2 changes: 1 addition & 1 deletion src/contact_matrix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ target_link_libraries(
Modle::common
Modle::io_compressed
Modle::stats
fmt::fmt)
fmt::fmt-header-only)

target_link_system_libraries(
cmatrix
Expand Down
4 changes: 2 additions & 2 deletions src/libmodle/cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ target_link_libraries(
Modle::io_bigwig
Modle::io_contact_matrix
concurrentqueue::concurrentqueue
fmt::fmt)
fmt::fmt-header-only)

target_link_system_libraries(
libmodle_cpu
Expand All @@ -62,7 +62,7 @@ target_link_system_libraries(
Boost::headers
bshoshany-thread-pool::bshoshany-thread-pool
range-v3::range-v3
spdlog::spdlog
spdlog::spdlog_header_only
xxHash::xxhash)

install(
Expand Down
4 changes: 2 additions & 2 deletions src/libmodle/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ target_link_libraries(
Modle::common
Modle::io_bed
Modle::interval_tree
fmt::fmt)
fmt::fmt-header-only)

target_link_system_libraries(
libmodle_internal
Expand All @@ -37,7 +37,7 @@ target_link_system_libraries(
absl::btree
absl::span
Boost::headers
spdlog::spdlog
spdlog::spdlog_header_only
xxHash::xxhash)

target_include_directories(libmodle_internal PUBLIC include/)
8 changes: 4 additions & 4 deletions src/libmodle_io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ target_include_directories(libmodle_io_bigwig PUBLIC include/bigwig)
target_link_libraries(
libmodle_io_bigwig
PRIVATE project_warnings project_options
PUBLIC Modle::common fmt::fmt)
PUBLIC Modle::common fmt::fmt-header-only)

target_link_system_libraries(
libmodle_io_bigwig
Expand All @@ -79,7 +79,7 @@ target_include_directories(libmodle_io_chrom_sizes PUBLIC include/chrom_sizes)
target_link_libraries(
libmodle_io_chrom_sizes
PRIVATE project_warnings project_options Modle::io_bed
PUBLIC Modle::common Modle::io_compressed fmt::fmt)
PUBLIC Modle::common Modle::io_compressed fmt::fmt-header-only)

target_link_system_libraries(
libmodle_io_chrom_sizes
Expand All @@ -104,7 +104,7 @@ target_include_directories(libmodle_io_compressed PUBLIC include/compressed_io)
target_link_libraries(
libmodle_io_compressed
PRIVATE project_warnings project_options
PUBLIC Modle::common fmt::fmt)
PUBLIC Modle::common fmt::fmt-header-only)

target_link_system_libraries(
libmodle_io_compressed
Expand Down Expand Up @@ -136,7 +136,7 @@ target_link_libraries(
project_options
Modle::cmatrix
Modle::common
fmt::fmt)
fmt::fmt-header-only)

target_link_system_libraries(
libmodle_io_contact_matrix
Expand Down
2 changes: 1 addition & 1 deletion src/modle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ target_link_system_libraries(
absl::time
Boost::headers
CLI11::CLI11
spdlog::spdlog
spdlog::spdlog_header_only
tomlplusplus::tomlplusplus
hictk)

Expand Down
4 changes: 2 additions & 2 deletions src/modle_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ target_link_libraries(
modle_tools
PRIVATE project_warnings
project_options
fmt::fmt
fmt::fmt-header-only
Modle::cmatrix
Modle::common
Modle::config
Expand Down Expand Up @@ -59,7 +59,7 @@ target_link_system_libraries(
cpp-sort::cpp-sort
readerwriterqueue::readerwriterqueue
tomlplusplus::tomlplusplus
spdlog::spdlog)
spdlog::spdlog_header_only)

target_include_directories(modle_tools PRIVATE include)

Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ target_link_libraries(
test_main
PRIVATE project_warnings
project_options
fmt::fmt
fmt::fmt-header-only
Modle::cmatrix
Modle::common
Modle::interval_tree
Expand All @@ -69,7 +69,7 @@ target_link_system_libraries(
Boost::headers
bshoshany-thread-pool::bshoshany-thread-pool
Catch2::Catch2WithMain
spdlog::spdlog)
spdlog::spdlog_header_only)

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Testing/)

Expand Down

0 comments on commit d2f6e8c

Please sign in to comment.