-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (41 loc) · 1.09 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
#
# Russell project
#
project (Russell)
# The version number.
set (Russell_VERSION_MAJOR 0)
set (Russell_VERSION_MINOR 5)
include(CheckCXXCompilerFlag)
set(CMAKE_CXX_STANDARD 14)
# minimal requirements
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.4.0")
set (BOOST_MIN_VERSION 1.40)
find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS
program_options
filesystem
system
log
log_setup
REQUIRED
)
find_package (Threads)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})
message(status "** Boost Include: ${Boost_INCLUDE_DIR}")
message(status "** Boost Libraries: ${Boost_LIBRARY_DIRS}")
message(status "** Boost Libraries: ${Boost_LIBRARIES}")
# config.h
configure_file (
${PROJECT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h
)
# let our config.h be found first in any case
include_directories (BEFORE ${CMAKE_CURRENT_BINARY_DIR})
option(BUILD_SOLID "Build all sources in one *.cpp file")
if(BUILD_SOLID)
add_definitions(-DBUILD_SOLID=1)
endif()
# sources
add_subdirectory (src)
add_subdirectory (metamath)