-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (33 loc) · 1.68 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
#===============================================================================
cmake_minimum_required(VERSION 3.20)
#===============================================================================
project(spam VERSION 1.0.0 LANGUAGES CXX)
#===============================================================================
# Standard options
set(CMAKE_CXX_STANDARD 11)
#===============================================================================
# LIBRARIES ARE INSTALLED USING THE VERSION NUMBER OF OUR PROJECT
set(PROJECT_INSTALL_NAME ${PROJECT_NAME}-${PROJECT_VERSION})
#===============================================================================
# specific macros are given in this file
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/cmake")
include(GNUInstallDirs)
include(project_macros)
#===============================================================================
find_package(nlohmann_json 3.2.0 REQUIRED)
#===============================================================================
add_subdirectory(mcts)
add_subdirectory(takuzu)
#===============================================================================
# INSTALLATION PROCEDURE
#===============================================================================
# DESTINATION directory is the project name + version number
set(DESTINATION_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_INSTALL_NAME})
# Do not modify below!
install(EXPORT ${PROJECT_NAME}-config
NAMESPACE ${PROJECT_NAME}::
DESTINATION ${DESTINATION_DIR})
configure_file(${PROJECT_NAME}-config.cmake.in
${PROJECT_NAME}-config.cmake
@ONLY)
#===============================================================================