-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
46 lines (37 loc) · 1.57 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
cmake_minimum_required (VERSION 3.8)
# Select C++ active standard
enable_language(CXX)
set (CMAKE_CXX_STANDARD 23)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)
option(OPENMIND_DEBUG_CHECKS "Additional debug checks" OFF)
set(OPENMIND_USE_OPENCL ON CACHE BOOL "OpenCL GPU calculations" FORCE)
option(OPENMIND_MATH_USE_LEVELDB_CACHE "Cache calculation results with LevelDB" ON)
set(OPENMIND_VERSION_TAG main CACHE STRING "OpenMind library version to use")
set(OPENMIND_VERSION_TAG generator CACHE STRING "OpenMind library version to use")
set(SKRYPT_VERSION_TAG main CACHE STRING "SKRYPT library version to use")
# Tell OpenMind to use any boost version installed in the system if any
if(Boost_FOUND)
message("Boost_VERSION_STRING: ${Boost_VERSION_STRING}")
set(OPENMIND_REQUIRED_BOOST_VERSION "${Boost_VERSION_STRING}" CACHE STRING "Boost library version to use")
endif()
set(BOOST_ADDITIONAL_COMPONENTS program_options CACHE STRING "Boost components")
# Find some Git
find_package(Git QUIET)
if(NOT GIT_EXECUTABLE)
find_program(GIT_EXECUTABLE git PATHS
"$ENV{ProgramFiles}/Microsoft Visual Studio/*/*/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/cmd/"
)
find_package(Git)
endif()
find_package(Threads)
# Fetch some OpenMind
include(FetchContent)
FetchContent_Declare(skrypt
GIT_REPOSITORY https://github.com/ohhmm/skrypt.git
GIT_TAG ${SKRYPT_VERSION_TAG})
FetchContent_MakeAvailable(skrypt)
# Include sub-projects, base component 'libgen' goes first.
fold(
libgen
)