From 054c17ca1df9f4edffda192aca127ad918136d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20M=C3=A4klin?= Date: Thu, 6 Jun 2024 17:19:31 +0300 Subject: [PATCH] Ship kseq++ headers with project instead of downloading --- CMakeLists.txt | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27d3b91..a770620 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,10 +123,14 @@ else() endif() ## Check dependencies and download them if not found -## BitMagic - supplied with the project +### BitMagic - supplied with the project set(CMAKE_BITMAGIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/external/BitMagic-7.12.3/src) include_directories(${CMAKE_BITMAGIC_HEADERS}) +### kseq++ +set(CMAKE_KSEQPP_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/external/kseqpp-1.1.2/include) +include_directories(${CMAKE_KSEQPP_HEADERS}) + ## bxzstr if (DEFINED CMAKE_BXZSTR_HEADERS) message(STATUS "bxzstr headers provided in: ${CMAKE_BXZSTR_HEADERS}") @@ -169,25 +173,6 @@ else() endif() include_directories("${CMAKE_CXXARGS_HEADERS}") -## kseqpp -if (DEFINED CMAKE_KSEQPP_HEADERS) - message(STATUS "kseq++ headers provided in: ${CMAKE_KSEQPP_HEADERS}") -else() - FetchContent_Declare(kseqpp - GIT_REPOSITORY https://github.com/cartoonist/kseqpp - GIT_TAG v1.1.2 - PREFIX "external" - SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/kseqpp" - BUILD_IN_SOURCE 0 - BUILD_COMMAND "" - CONFIGURE_COMMAND "" - INSTALL_COMMAND "" - ) - FetchContent_MakeAvailable(kseqpp) - set(CMAKE_KSEQPP_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/external/kseqpp/include) -endif() -include_directories("${CMAKE_KSEQPP_HEADERS}") - # Link libraries if (OPENMP_FOUND) target_link_libraries(libalignmentwriter OpenMP::OpenMP_CXX)