-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (20 loc) · 945 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
project(master-experiments)
cmake_minimum_required(VERSION 2.8.9)
find_package(Boost COMPONENTS regex date_time REQUIRED)
find_package(Qt5Core)
find_package(Qt5Sql)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
add_definitions(-std=c++11 -std=gnu++11 -pthread -W -Wall -Wno-unused-function)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_VERBOSE_MAKEFILE ON)
else()
add_definitions(-Ofast)
endif()
include_directories(${Boost_INCLUDE_DIRS})
add_executable(master-experiments evaluation.cpp tweet.cpp twitteruser.cpp svm.cpp main.cpp)
target_link_libraries(master-experiments Qt5::Sql Qt5::Core ${Boost_LIBRARIES})
install(TARGETS master-experiments RUNTIME DESTINATION bin)
add_custom_command(TARGET master-experiments COMMAND cp -r ${CMAKE_SOURCE_DIR}/data ${CMAKE_BINARY_DIR})
add_custom_command(TARGET master-experiments COMMAND cp -lr ${CMAKE_SOURCE_DIR}/models ${CMAKE_BINARY_DIR}/data)
add_subdirectory(tests)