-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
21 lines (14 loc) · 922 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmake_minimum_required(VERSION 3.1)
project(jackdynconagent)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/" "${CMAKE_SOURCE_DIR}/submodules/libfindmacros/")
find_package(Jack REQUIRED)
find_package(YamlCpp REQUIRED)
find_package(ProcPS REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
file(GLOB SOURCE_FILES "src/*.cpp" "include/*.h" "include/*.hpp")
include_directories(include submodules/easylogging/src submodules/optionparser)
add_executable(jackdynconagent ${SOURCE_FILES})
target_include_directories(jackdynconagent SYSTEM PRIVATE ${YAMLCPP_INCLUDE_DIR} ${JACK_INCLUDE_DIRS} ${PROCPS_INCLUDE_DIRS})
target_link_libraries(jackdynconagent ${YAMLCPP_LIBRARY} ${JACK_LIBRARIES} ${PROCPS_LIBRARIES} -lpthread)
target_compile_options(jackdynconagent PRIVATE ${JACK_DEFINITIONS} -g -rdynamic -ggdb)
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/jackdynconagent DESTINATION bin)