-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
37 lines (27 loc) · 983 Bytes
/
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
cmake_minimum_required(VERSION 3.15) # support relative path
message("===============================================================")
include("project_info.in")
project(Mn
VERSION ${project_version}
DESCRIPTION ${project_description}
LANGUAGES CXX CUDA
)
option(BUILD_SHARED_LIBS "Enable compilation of shared libraries" OFF)
#Fixes https://gitlab.kitware.com/cmake/cmake/-/issues/24154 for older cmake versions
set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA "-isystem ")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
include(CMake-Utils/setup_cpp.cmake)
include(CMake-Utils/setup_cuda.cmake)
include(CMake-Utils/setup_externallibs.cmake)
add_subdirectory(Externals)
# header only libraries
include_directories(
SYSTEM
Externals/variant
Externals/optional
Externals/function_ref
)
message("===============================================================")
include_directories(Library)
add_subdirectory(Library)
add_subdirectory(Projects)