-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (25 loc) · 981 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
cmake_minimum_required(VERSION 3.0)
project(wsjcpp-arguments)
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
#### BEGIN_WSJCPP_APPEND
#### END_WSJCPP_APPEND
set(CMAKE_CXX_STANDARD 11)
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp-arguments_SOURCE_DIR})
# Sources
# include header dirs
list (APPEND WSJCPP_INCLUDE_DIRS "src")
list (APPEND WSJCPP_INCLUDE_DIRS "src/ArgumentProcessors")
list (APPEND WSJCPP_SOURCES "src/wsjcpp_arguments.h")
list (APPEND WSJCPP_SOURCES "src/wsjcpp_arguments.cpp")
list (APPEND WSJCPP_SOURCES "src/ArgumentProcessors/argument_processor_main.h")
list (APPEND WSJCPP_SOURCES "src/ArgumentProcessors/argument_processor_main.cpp")
list (APPEND WSJCPP_SOURCES "src/main.cpp")
include_directories(${WSJCPP_INCLUDE_DIRS})
add_executable ("wsjcpp-arguments" ${WSJCPP_SOURCES})
target_link_libraries("wsjcpp-arguments" -lpthread ${WSJCPP_LIBRARIES} )
install(
TARGETS
"wsjcpp-arguments"
RUNTIME DESTINATION
/usr/bin
)