forked from nextstrain/nextclade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (27 loc) · 1.08 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.10)
cmake_policy(SET CMP0069 NEW)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/packages/cmake" ${CMAKE_MODULE_PATH})
include(packages/cmake/CCache.cmake)
include(packages/cmake/CFlags.cmake)
include(packages/cmake/Quiet.cmake)
include(packages/cmake/Sanitizers.cmake)
file(STRINGS "VERSION" NEXTCLADE_CPP_VERSION)
project(nextclade_all)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_INSTALL_MESSAGE LAZY)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -pg")
add_subdirectory(packages/nextalign)
add_subdirectory(packages/nextclade)
option(NEXTALIGN_BUILD_CLI "Build Nextalign CLI executable" OFF)
set(NEXTALIGN_BUILD_CLI ${NEXTCLADE_BUILD_CLI} CACHE BOOL "Build Nextalign CLI executable")
if (${NEXTALIGN_BUILD_CLI})
add_subdirectory(packages/nextalign_cli)
endif ()
option(NEXTCLADE_BUILD_CLI "Build Nextclade CLI executable" OFF)
if (${NEXTCLADE_BUILD_CLI})
add_subdirectory(packages/nextclade_cli)
endif ()
option(NEXTCLADE_BUILD_WASM "Build Nextclade WebAssembly module" OFF)
if (${NEXTCLADE_BUILD_WASM})
add_subdirectory(packages/nextclade_wasm)
endif ()