-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
61 lines (50 loc) · 2.23 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
57
58
59
60
61
#------------------------------------------------------------------------------#
# Copyright (c) 2020 Triad National Security, LLC
# All rights reserved.
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# The project name
#------------------------------------------------------------------------------#
project(flecsph)
cmake_minimum_required(VERSION 3.15)
#------------------------------------------------
# kick the tires
#------------------------------------------------
enable_language(CXX)
include(CMakeDetermineCXXCompiler)
include(CheckCXXCompilerFlag)
#------------------------------------------------
# global interface targets
#------------------------------------------------
# interface libraries
# see: cmake/SetupDeps.cmake, cmake/SetupFlags.cmake
#add_library(flecsph::include_sources INTERFACE IMPORTED)
#add_library(flecsph::compile_flags INTERFACE IMPORTED)
#add_library(flecsph::library_flags INTERFACE IMPORTED)
add_library(flecsph::flags INTERFACE IMPORTED)
#------------------------------------------------
# construct configuration state
#------------------------------------------------
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# make sure order is correct when adding modules
include(ProcessOptions)
include(SetupDeps)
include(SetupFlags)
include(SetupTesting)
#add_subdirectory("include")
#------------------------------------------------------------------------------#
# Add mpisph tests
#------------------------------------------------------------------------------#
add_subdirectory("include")
add_subdirectory("mpisph/")
add_subdirectory("include/physics/test")
add_subdirectory("include/tree_topology/test")
#------------------------------------------------------------------------------#
# Add application targets
#------------------------------------------------------------------------------#
add_subdirectory("app/id_generators")
add_subdirectory("app/drivers")
#------------------------------------------------------------------------------#
# Formatting options for emacs and vim.
# vim: set tabstop=4 shiftwidth=4 expandtab :
#------------------------------------------------------------------------------#