-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
CMakeLists.txt
30 lines (26 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
######################################################################################
# Fakenect Mock Library
######################################################################################
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib/fakenect)
include_directories(../src)
add_library (fakenect SHARED fakenect.c parson.c ../src/registration.c)
set_target_properties ( fakenect PROPERTIES
VERSION ${PROJECT_VER}
SOVERSION ${PROJECT_APIVER}
OUTPUT_NAME fakenect)
target_link_libraries(fakenect ${MATH_LIB})
install (TARGETS fakenect
DESTINATION "${PROJECT_LIBRARY_INSTALL_DIR}/fakenect")
add_executable(fakenect-record record.c parson.c)
target_link_libraries(fakenect-record freenect ${MATH_LIB})
install (TARGETS fakenect-record
DESTINATION bin)
CONFIGURE_FILE("fakenect.sh.in"
"fakenect.sh"
IMMEDIATE @ONLY)
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/fakenect.sh
DESTINATION bin
RENAME fakenect)
install(FILES fakenect.1 fakenect-record.1
DESTINATION ${PROJECT_MANPAGE_INSTALL_DIR}/man1)