-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (30 loc) · 1.2 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
## -----------------------------------------------------------------------------
##
## Copyright (C) 2021 CERN and the University of Geneva for the benefit of the
## BioDynaMo collaboration. All Rights Reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
##
## See the LICENSE file distributed with this work for details.
##
## -----------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.2.0)
project(hiv_malawi)
find_package(BioDynaMo REQUIRED)
include(${BDM_USE_FILE})
include_directories("src")
file(GLOB_RECURSE HEADERS src/*.h)
file(GLOB_RECURSE SOURCES src/*.cc)
bdm_add_executable(hiv_malawi
HEADERS ${HEADERS}
SOURCES ${SOURCES}
LIBRARIES ${BDM_REQUIRED_LIBRARIES})
# Consider all files in test/ for GoogleTests.
include_directories("test")
file(GLOB_RECURSE TEST_SOURCES test/*.cc)
file(GLOB_RECURSE TEST_HEADERS test/*.h)
bdm_add_test(${CMAKE_PROJECT_NAME}-test
SOURCES ${TEST_SOURCES}
HEADERS ${TEST_HEADERS}
LIBRARIES ${BDM_REQUIRED_LIBRARIES} ${CMAKE_PROJECT_NAME})