forked from kkrizanovic/pyhera
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
44 lines (34 loc) · 1.51 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
cmake_minimum_required (VERSION 3.2)
project (ScaRa)
# The version number.
set (ScaRa_VERSION_MAJOR 1)
set (ScaRa_VERSION_MINOR 0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/src/Config.h.in"
"${PROJECT_BINARY_DIR}/Config.h"
)
# add the binary tree to the search path for include files
# so that we will find TutorialConfig.h
include_directories("${PROJECT_BINARY_DIR}")
set(SOURCE_FILES_SCARA src/scara.cpp src/Sequence.cpp src/Overlap.cpp src/Alignment.cpp src/Loader.cpp src/SBridger.cpp
src/GraphBasic.cpp src/GraphAlgorithms.cpp)
set(SOURCE_FILES_LOAD1 src/Load_HiC.cpp src/Sequence.cpp src/Overlap.cpp src/Alignment.cpp src/Loader.cpp)
set(SOURCE_FILES_LOAD2 src/Load_HiC_aln.cpp src/Sequence.cpp src/Overlap.cpp src/Alignment.cpp src/Loader.cpp src/HiCAnalysis.cpp)
# Adding bioparser
add_subdirectory(vendor/bioparser EXCLUDE_FROM_ALL)
add_subdirectory(vendor/thread_pool)
# Add the scara executable
add_executable(scara ${SOURCE_FILES_SCARA})
# target_link_libraries(scara bioparser sbridger loader overlap sequence)
target_link_libraries(scara bioparser thread_pool)
# Add the load_HiC executable
add_executable(load_HiC ${SOURCE_FILES_LOAD1})
target_link_libraries(load_HiC bioparser)
# Add the load_HiC_aln executable
add_executable(load_HiC_aln ${SOURCE_FILES_LOAD2})
target_link_libraries(load_HiC_aln bioparser)