-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (28 loc) · 1.01 KB
/
CMakeLists.txt
File metadata and controls
35 lines (28 loc) · 1.01 KB
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
cmake_minimum_required(VERSION 3.10)
include(TestBigEndian)
# project name and version
project(disasm_test VERSION 1.0.0.0)
# C++ standards!
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED true)
file(GLOB dat_SRCS "${PROJECT_SOURCE_DIR}/src/*.cpp")
add_executable(disasm_test ${dat_SRCS})
include_directories(disasm_test PUBLIC "${PROJECT_SOURCE_DIR}/include" "${PROJECT_SOURCE_DIR}/src")
target_include_directories(disasm_test PUBLIC "${PROJECT_BINARY_DIR}")
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
set(Boost_USE_RELEASE_LIBS ON)
find_package(Boost 1.62.0 REQUIRED)
if (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
else()
message(FATAL "Boost not found or a required component not found")
endif()
TEST_BIG_ENDIAN(IS_BE)
if(IS_BE)
message(STATUS "Configuring instruction read for Big Endian systems")
else()
message(STATUS "Configuring instruction read for Little Endian systems")
endif()
configure_file(disasm_config.h.in disasm_config.h)