-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
53 lines (41 loc) · 1.49 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
cmake_minimum_required(VERSION 3.12)
project(BinRec)
set(CMAKE_CXX_STANDARD 17)
include(FetchContent)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_EXPORT_COMPILE_COMMANDS True)
#find_package(LLVM 14.0 REQUIRED CONFIG)
include($ENV{S2E_PREFIX}/lib/cmake/llvm/LLVMConfig.cmake)
find_package(Python 3.9 REQUIRED COMPONENTS Interpreter Development)
find_package(Doxygen
REQUIRED dot
OPTIONAL_COMPONENTS mscgen dia)
FetchContent_Declare(robin_hood_hashing
GIT_REPOSITORY https://github.com/martinus/robin-hood-hashing.git
GIT_TAG 3.11.2
)
FetchContent_MakeAvailable(robin_hood_hashing)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/6b74da4757a549563d7c37c8fae3e704662a043b.zip
)
FetchContent_MakeAvailable(googletest)
enable_testing()
include(GoogleTest)
add_compile_options(-Wall -pedantic -Wno-comment)
add_subdirectory(binrec_lift)
add_subdirectory(binrec_link)
add_subdirectory(binrec_rt)
add_subdirectory(binrec_traceinfo)
add_subdirectory(binrec_tracemerge)
unset(CMAKE_RUNTIME_OUTPUT_DIRECTORY)
add_custom_target(runlib ALL $(MAKE) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/runlib)
add_custom_target(doxygen)
add_dependencies(doxygen
binrec_traceinfo_docs
binrec_lift_docs
binrec_link_docs
binrec_rt_docs)