Skip to content

Commit

Permalink
Ship kseq++ headers with project instead of downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaklin committed Jun 6, 2024
1 parent 2ee82f9 commit 054c17c
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 054c17c

Please sign in to comment.