Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.11)
project(raven
VERSION 1.8.1
VERSION 1.8.2
LANGUAGES CXX
DESCRIPTION "Raven is a de novo genome assembler for long uncorrected reads.")

Expand Down
48 changes: 48 additions & 0 deletions Raven.deps.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
include(FetchContent)
include(GNUInstallDirs)

FetchContent_Declare(
ram
GIT_REPOSITORY https://github.com/tbrekalo/ram-experimental
GIT_TAG f7042c21fee01feb87e1953e498c402eb1f8fcc6)

FetchContent_GetProperties(ram)
if (NOT ram_POPULATED)
FetchContent_Populate(ram)
add_subdirectory(
${ram_SOURCE_DIR}
${ram_BINARY_DIR}
EXCLUDE_FROM_ALL)
endif ()

find_package(bioparser 3.0.13 QUIET)
if (NOT bioparser_FOUND)
FetchContent_Declare(
Expand Down Expand Up @@ -53,6 +67,40 @@ if (NOT racon_FOUND)
endif ()
endif ()

find_package(cxxopts 3.0.0 QUIET)
if (NOT cxxopts_FOUND)
FetchContent_Declare(
cxxopts
GIT_REPOSITORY https://github.com/jarro2783/cxxopts.git
GIT_TAG v3.0.0)

FetchContent_GetProperties(cxxopts)
if (NOT cxxopts_POPULATED)
FetchContent_Populate(cxxopts)
add_subdirectory(
${cxxopts_SOURCE_DIR}
${cxxopts_BINARY_DIR}
EXCLUDE_FROM_ALL)
endif ()
endif ()

find_package(tsl-robin-map 1.0.1 QUIET)
if (NOT tsl-robin-map_FOUND)
FetchContent_Declare(
tsl-robin-map
GIT_REPOSITORY https://github.com/Tessil/robin-map.git
GIT_TAG v1.0.1)

FetchContent_GetProperties(tsl-robin-map)
if (NOT tsl-robin-map_POPULATED)
FetchContent_Populate(tsl-robin-map)
add_subdirectory(
${tsl-robin-map_SOURCE_DIR}
${tsl-robin-map_BINARY_DIR}
EXCLUDE_FROM_ALL)
endif ()
endif ()

if (RAVEN_BUILD_PYTHON)
find_package(pybind11 QUIET)
if (NOT pybind11_FOUND)
Expand Down
5 changes: 4 additions & 1 deletion RavenExe/Exe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (NOT TARGET RavenExe)
include(${CMAKE_CURRENT_LIST_DIR}/Exe.srcs.cmake)

add_executable(raven_exe ${SOURCES})
target_link_libraries(raven_exe PRIVATE raven)
target_link_libraries(raven_exe PRIVATE cxxopts::cxxopts raven)

if (racon_enable_cuda)
target_compile_definitions(raven_exe PRIVATE CUDA_ENABLED)
Expand All @@ -12,4 +12,7 @@ if (NOT TARGET RavenExe)
target_compile_definitions(raven_exe PRIVATE VERSION="${PROJECT_VERSION}")
set_property(TARGET raven_exe PROPERTY OUTPUT_NAME raven)

configure_file(
"${CMAKE_CURRENT_LIST_DIR}/src/raven_cfg.h.in" raven_cfg.h)
target_include_directories(raven_exe PRIVATE ${PROJECT_BINARY_DIR})
endif()
Loading