-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·31 lines (26 loc) · 986 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
cmake_minimum_required(VERSION 2.8)
project(tasks)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g")
include_directories(${tasks_SOURCE_DIR}/include)
include_directories(${tasks_SOURCE_DIR})
set(SOURCE_FILES main.cpp
src/process/process.cpp
src/process/process.h
src/process/runner.h
src/process/runner.cpp
src/Ifactory/IFactory.h
src/Ifactory/ITask.h
src/url/url_factory.cpp
src/url/url_factory.h
src/url/url_task.h
src/url/url_task.cpp
src/url/url_runner.h
src/url/url_runner.cpp
include/utils/time.h)
add_executable(tasks ${SOURCE_FILES})
target_link_libraries(tasks pthread)
# ADD BY linjian 2017/03/05 12:33:00
SET(EXECUTABLE_OUTPUT_PATH ${tasks_SOURCE_DIR}/build/release/bin)
SET(CMAKE_INSTALL_PREFIX "/opt")
INSTALL(DIRECTORY ${tasks_SOURCE_DIR}/build/release/bin DESTINATION factory/)
INSTALL(DIRECTORY ${tasks_SOURCE_DIR}/build/release/doc DESTINATION factory/)