-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
57 lines (43 loc) · 1.36 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
cmake_minimum_required(VERSION 3.5)
project(Map2Check)
set(Map2Check_VERSION_MAJOR 7)
set(Map2Check_VERSION_MINOR 0)
option(USE_PREBUILT_CLANG "Download and Install pre-built clang" ON)
option(BUILD_DOC "Build documentation" OFF)
option(SKIP_LIB_FUZZER "Don't build libFuzzer" OFF)
option(SKIP_KLEE "Don't build KLEE" OFF)
option(REGRESSION "Prepare Regression Tests" OFF)
option(ENABLE_TEST "Build all tests" OFF)
set (CMAKE_CXX_STANDARD 11)
# set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
# set(CMAKE_EXE_LINKER_FLAGS "-Bstatic -static-libgcc -static-libstdc++")
# include(cmake/ExternalDeps.cmake)
set(Map2Check_MODE "STATIC")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
set(CMAKE_EXE_LINKER_FLAGS "-Bstatic -static-libgcc -static-libstdc++")
include(cmake/FindClang.cmake)
include(cmake/FindBoost.cmake)
if(NOT SKIP_LIB_FUZZER)
include(cmake/FindLibFuzzer.cmake)
endif()
if(NOT SKIP_KLEE)
include(cmake/FindZ3.cmake)
include(cmake/FindMiniSat.cmake)
include(cmake/FindSTP.cmake)
include(cmake/FindKleeUCLibC.cmake)
include(cmake/FindKlee.cmake)
endif()
if(REGRESSION)
include(cmake/DownloadRegression.cmake)
endif()
include_directories(${PROJECT_SOURCE_DIR})
if(ENABLE_TEST)
enable_testing()
include(cmake/FindGTest.cmake)
message("Adding tests")
add_subdirectory(tests)
endif()
add_subdirectory(modules)
if(BUILD_DOC)
include(cmake/GenerateDocs.cmake)
endif()