src/CMakeLists.txt
branchv_0
changeset 2 7ba3ae8cf1fc
parent 1 0e791c64f38b
child 3 0d857519a4c9
--- a/src/CMakeLists.txt	Mon Sep 24 13:47:02 2018 +0200
+++ b/src/CMakeLists.txt	Mon Sep 24 13:59:06 2018 +0200
@@ -1,6 +1,15 @@
+set(EXECUTABLE_FILE "relpipe-out-chart")
+
 # Add ASan AddressSanitizer
 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
 set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
 # From ASan wiki: "To get nicer stack traces in error messages add -fno-omit-frame-pointer."
 
-add_executable (relpipe-out-chart relpipe-out-chart.cpp)
+INCLUDE(FindPkgConfig)
+pkg_check_modules (RELPIPE_LIB_READER relpipe-lib-reader.cpp relpipe-lib-cli.cpp)
+include_directories(${RELPIPE_LIB_READER_INCLUDE_DIRS})  
+link_directories(${RELPIPE_LIB_READER_LIBRARY_DIRS})
+
+add_executable (${EXECUTABLE_FILE} relpipe-out-chart.cpp)
+
+target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIB_READER_LIBRARIES})