-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (24 loc) · 1.1 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
cmake_minimum_required(VERSION 2.6)
project(chipboard)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-std=c++11 Cxx11_SUPPORTED)
if (NOT Cxx11_SUPPORTED)
message(FATAL_ERROR "Compiler with C++11 support required!")
endif()
#find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
set(shared_sources genome.cpp readcontainer.cpp utils.cpp plotchromosome2.cpp vplot2.cpp linplot2.cpp)
Set(CMAKE_CXX_FLAGS "-std=c++11 -lpthread -DDEBUG -g -Wall")
#qt4_automoc(${shared_sources})
add_library(shared_objects ${shared_sources})
add_custom_command(TARGET shared_objects
POST_BUILD
COMMAND cp ../eps-header .
)
#add_executable(chipboard main.cpp)
#target_link_libraries(chipboard ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} shared_objects)
add_executable(chipboard-cli chipboard-cli.cpp)
target_link_libraries(chipboard-cli ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} shared_objects)
add_executable(tests tests.cpp)
target_link_libraries(tests ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} shared_objects)
install(TARGETS chipboard-cli RUNTIME DESTINATION bin)