-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (31 loc) · 1.01 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
cmake_minimum_required(VERSION 3.6)
project(bfx64)
#set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.58 COMPONENTS system filesystem program_options REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
set(LLVM_BUILD_PATH /home/bmuscede/Applications/LLVM-Build)
link_directories(${LLVM_BUILD_PATH}/lib)
include_directories(${LLVM_BUILD_PATH}/include)
add_definitions(
-D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
Runner/Driver.cpp
ELF/ElfReader.cpp
ELF/ElfReader.h
Graph/TAGraph.cpp
Graph/TAGraph.h
Graph/BFXNode.cpp
Graph/BFXNode.h
Graph/BFXEdge.cpp
Graph/BFXEdge.h
Runner/TAFunctions.h
Runner/TAFunctions.cpp
Print/PrintOperation.cpp Print/PrintOperation.h Print/ProgressBar.c Print/ProgressBar.h)
add_executable(bfx64 ${SOURCE_FILES})
include(FindCurses)
target_link_libraries(bfx64
${Boost_LIBRARIES}
${CURSES_LIBRARIES})