-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from paulsengroup/update-build-system
- Let Conan manage external deps - Install library headers - Move implementation headers under `impl/` - Support including hictk with `add_subdirectory()` - Support finding hictk with `find_package()`
- Loading branch information
Showing
173 changed files
with
747 additions
and
1,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright (C) 2023 Roberto Rossini <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
set(targets | ||
balancing;bin_table;chromosome;common;cooler;formatting;genomic_interval;hic;numeric;pixel;reference;transformers;variant | ||
) | ||
|
||
include(GNUInstallDirs) | ||
foreach(tgt ${targets}) | ||
install(DIRECTORY "${PROJECT_SOURCE_DIR}/src/libhictk/${tgt}/include/hictk" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") | ||
endforeach() | ||
|
||
install( | ||
TARGETS libhictk | ||
balancing | ||
bin_table | ||
chromosome | ||
common | ||
cooler | ||
formatting | ||
genomic_interval | ||
hic | ||
numeric | ||
pixel | ||
reference | ||
transformers | ||
variant | ||
EXPORT libhictk-targets | ||
FILE_SET HEADERS | ||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" | ||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" | ||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" | ||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" | ||
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" | ||
PRIVATE_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" | ||
INCLUDES | ||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") | ||
|
||
install( | ||
EXPORT libhictk-targets | ||
FILE hictkTargets.cmake | ||
NAMESPACE hictk:: | ||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/hictk/") | ||
|
||
include(CMakePackageConfigHelpers) | ||
configure_package_config_file( | ||
"${PROJECT_SOURCE_DIR}/cmake/hictkConfig.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/hictkConfig.cmake" | ||
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/hictk/") | ||
|
||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/hictkConfig.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/hictk") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright (C) 2023 Roberto Rossini <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
@PACKAGE_INIT@ | ||
|
||
set(HICTK_WITH_EIGEN @HICTK_WITH_EIGEN@) | ||
|
||
include(CMakeFindDependencyMacro) | ||
if(HICTK_WITH_EIGEN) | ||
find_dependency( | ||
Eigen3 | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
endif() | ||
|
||
find_dependency( | ||
FastFloat | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
find_dependency( | ||
FMT | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
find_dependency( | ||
HDF5 | ||
CONFIG | ||
QUIET | ||
REQUIRED | ||
COMPONENTS | ||
C) | ||
find_dependency( | ||
HighFive | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
find_dependency( | ||
libdeflate | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
find_dependency( | ||
phmap | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
find_dependency( | ||
spdlog | ||
CONFIG | ||
QUIET | ||
REQUIRED) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/hictkTargets.cmake") | ||
|
||
check_required_components(hictk) |
Oops, something went wrong.