forked from avramidis/stationsimcpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
46 lines (38 loc) · 1.42 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
#---------------------------------------------------------------------------//
# Copyright (c) 2020 Eleftherios Avramidis <[email protected]>
# Research Computing Services, University of Cambridge, UK
#
# Distributed under The MIT License (MIT)
# See accompanying file LICENSE
#---------------------------------------------------------------------------//
cmake_minimum_required(VERSION 3.15)
project(StationSim
VERSION 1.0.0
DESCRIPTION "Station simulator library.")
# General options
option(STATIONSIM_ENABLE_EXAMPLES "Enables examples" ON)
option(STATIONSIM_ENABLE_OPENMP "Enables OpenMP" OFF)
option(BUILD_TESTING "Build the tests." ON)
# Project dependencies
include(cmake/ProjectDependencies.cmake)
# Project settings
include(cmake/StandardProjectSettings.cmake)
add_library(stationsim_project_options INTERFACE)
target_compile_features(stationsim_project_options INTERFACE cxx_std_17)
target_link_libraries(stationsim_project_options INTERFACE MPI::MPI_CXX)
# Standard compiler warnings
add_library(stationsim_project_warnings INTERFACE)
include(cmake/CompilerWarnings.cmake)
set_project_warnings(stationsim_project_warnings)
#add_subdirectory(external)
add_subdirectory(particle_filter)
add_subdirectory(stationsim_model)
add_subdirectory(sphere_function)
include(GenerateExportHeader)
add_subdirectory(examples)
# Testing
include(CTest)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif(BUILD_TESTING)