-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
56 lines (41 loc) · 1.58 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.1)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
project(bimol_test_stoch_sim)
include_directories(/usr/local/include)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../bin)
# Dependencies
include(cmake/CPM.cmake)
CPMAddPackage(
GITHUB_REPOSITORY "smrfeld/LatticeGillespieCpp"
NAME lattgillespie
GIT_TAG 1.0
)
CPMAddPackage(
GITHUB_REPOSITORY "smrfeld/DynamicBoltzmann"
NAME bmla
GIT_TAG 3.1
)
############################################################
# main
############################################################
add_executable(main src/main.cpp)
# Include dirs for bmla, lattgillespie
target_include_directories(main PRIVATE ${bmla_SOURCE_DIR}/include/)
target_include_directories(main PRIVATE ${lattgillespie_SOURCE_DIR}/include/)
target_link_libraries(main PUBLIC lattgillespie)
target_link_libraries(main PUBLIC bmla)
############################################################
# learn_ic
############################################################
add_executable(learn_ic src/learn_ic.cpp)
target_include_directories(learn_ic PRIVATE ${bmla_SOURCE_DIR}/include/)
target_link_libraries(learn_ic PUBLIC bmla)
############################################################
# extra
############################################################
# If want to include install target
# install(TARGETS bmla_layer_1 RUNTIME DESTINATION bin)