X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvoglreplay%2FCMakeLists.txt;h=a9c632413323dd5d7b27b32fa3fd69be47460752;hb=450788d502b6281d5d9fe3e6a0ea0b66a3e116bc;hp=c96255e6ba4a430082ac19ac5dfa00229d89bc0a;hpb=efdbc27f2074c559c8bbd4c118c45fda53e7aa7a;p=vogl diff --git a/src/voglreplay/CMakeLists.txt b/src/voglreplay/CMakeLists.txt index c96255e..a9c6324 100644 --- a/src/voglreplay/CMakeLists.txt +++ b/src/voglreplay/CMakeLists.txt @@ -2,6 +2,11 @@ project(voglreplay) cmake_minimum_required(VERSION 2.8) include("${SRC_DIR}/build_options.cmake") +find_package(Threads) +if (NOT CMAKE_USE_PTHREADS_INIT) + message(ERROR "pthread not found") +endif () +find_package(X11 REQUIRED) include_directories( @@ -11,7 +16,7 @@ include_directories( include_directories( ${SRC_DIR}/voglcore - ${SRC_DIR}/voglinc + ${CMAKE_BINARY_DIR}/voglinc ${SRC_DIR}/voglcommon ${SRC_DIR}/libtelemetry ${SRC_DIR}/extlib/loki/include/loki @@ -27,14 +32,15 @@ set(SRC_LIST # add_compiler_flag("-DVOGL_REMOTING") add_executable(${PROJECT_NAME} ${SRC_LIST}) +add_dependencies(${PROJECT_NAME} voglgen_make_inc) target_link_libraries(${PROJECT_NAME} ${TELEMETRY_LIBRARY} backtrace voglcommon - dl - X11 - pthread + ${CMAKE_DL_LIBS} + ${X11_X11_LIB} + ${CMAKE_THREAD_LIBS_INIT} voglcore rt )