|
@@ -91,13 +91,15 @@ set( source
|
91
|
91
|
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmakemodules" )
|
92
|
92
|
find_package( X11 REQUIRED )
|
93
|
93
|
find_package( XExt REQUIRED )
|
|
94
|
+find_package( RT REQUIRED )
|
94
|
95
|
|
95
|
96
|
set( CMAKE_CXX_FLAGS
|
96
|
97
|
"${CMAKE_CXX_FLAGS} ${CMAKE_IMLIB2_CXX_FLAGS}" )
|
97
|
98
|
|
98
|
99
|
# Includes
|
99
|
100
|
include_directories( ${X11_INCLUDE_DIR}
|
100
|
|
- ${XEXT_INCLUDE_DIR} )
|
|
101
|
+ ${XEXT_INCLUDE_DIR}
|
|
102
|
+ ${RT_INCLUDE_DIR} )
|
101
|
103
|
|
102
|
104
|
# Executable
|
103
|
105
|
add_executable( "${BIN_TARGET}" ${source} )
|
|
@@ -105,7 +107,8 @@ add_executable( "${BIN_TARGET}" ${source} )
|
105
|
107
|
# Libraries
|
106
|
108
|
target_link_libraries( "${BIN_TARGET}"
|
107
|
109
|
${X11_LIBRARIES}
|
108
|
|
- "${XEXT_LIBRARY}" )
|
|
110
|
+ "${XEXT_LIBRARY}"
|
|
111
|
+ "${RT_LIBRARY}" )
|
109
|
112
|
|
110
|
113
|
install( TARGETS ${BIN_TARGET}
|
111
|
114
|
DESTINATION ${CMAKE_INSTALL_PREFIX} )
|