forked from HosnaJabbari/Iterative-HFold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·37 lines (29 loc) · 955 Bytes
/
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
# Ian Wark July 6 2017
cmake_minimum_required(VERSION 3.1)
project(HFold_iterative)
# enable c++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# only continue if we know we already have boost
# create simfold library
add_subdirectory(simfold)
set(HFold_iterative_SOURCE
W_final.h W_final.cpp
pseudo_loop.h pseudo_loop.cpp
V_final.h V_final.cpp
VM_final.h VM_final.cpp
h_common.h h_common.cpp
hfold_validation.h hfold_validation.cpp
hfold_iterative.h HFold_iterative.cpp
)
# get pthread library
find_package (Threads)
# set path for executable to be created
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
# create executables
add_executable(HFold_iterative ${HFold_iterative_SOURCE})
# link to simfold
target_link_libraries(HFold_iterative LINK_PUBLIC simfold)
# link to pthread
target_link_libraries(HFold_iterative LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT})