]> git.cworth.org Git - vogl/blob - src/voglreplay/CMakeLists.txt
cmake: Use find_package to find X11 libraries
[vogl] / src / voglreplay / CMakeLists.txt
1 project(voglreplay)
2 cmake_minimum_required(VERSION 2.8)
3
4 include("${SRC_DIR}/build_options.cmake")
5 find_package(X11 REQUIRED)
6
7
8 include_directories(
9     ${CMAKE_CURRENT_BINARY_DIR}
10     )
11
12
13 include_directories(
14     ${SRC_DIR}/voglcore
15     ${SRC_DIR}/voglinc
16     ${SRC_DIR}/voglcommon
17         ${SRC_DIR}/libtelemetry
18         ${SRC_DIR}/extlib/loki/include/loki
19     )
20
21 set(SRC_LIST
22     ${SRC_LIST}
23     vogl_replay_tool.cpp
24 #    vogl_remote.cpp
25 #    ../common/channel.cpp
26 )
27
28 # add_compiler_flag("-DVOGL_REMOTING")
29
30 add_executable(${PROJECT_NAME} ${SRC_LIST})
31
32 target_link_libraries(${PROJECT_NAME}
33     ${TELEMETRY_LIBRARY}
34     backtrace
35     voglcommon
36     ${CMAKE_DL_LIBS}
37     ${X11_X11_LIB}
38     pthread
39     voglcore
40     rt
41     )
42
43 build_options_finalize()
44