forked from RobotLocomotion/libbot
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (30 loc) · 1.36 KB
/
CMakeLists.txt
File metadata and controls
39 lines (30 loc) · 1.36 KB
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
31
32
33
34
35
36
37
38
39
add_definitions(-std=gnu99)
# Create a shared library libbot2-frames-renderer.so with a single source file
add_library(bot2-frames-renderers SHARED
coord_frames_renderer.c articulated_body_renderer.c frame_modifier_renderer.c)
set(REQUIRED_PACKAGES bot2-core bot2-param-client bot2-vis)
pods_use_pkg_config_packages(bot2-frames-renderers ${REQUIRED_PACKAGES})
target_link_libraries(bot2-frames-renderers bot2-frames
${OPENGL_LIBRARIES})
list(APPEND REQUIRED_PACKAGES bot2-frames)
# set the library API version. Increment this every time the public API
# changes.
set_target_properties(bot2-frames-renderers PROPERTIES SOVERSION 1)
# make the header public
# install it to include/bot_frames
pods_install_headers(bot_frames_renderers.h DESTINATION bot_frames)
# make the library public
pods_install_libraries(bot2-frames-renderers)
# create a pkg-config file for the library, to make it for other software to
# use it.
pods_install_pkg_config_file(bot2-frames-renderers
CFLAGS
LIBS -lbot2-frames-renderers
REQUIRES ${REQUIRED_PACKAGES}
VERSION 0.0.1)
#build the test-viewer
add_executable(test-viewer test_viewer.c)
target_link_libraries(test-viewer ${GLUT_LIBRARIES} bot2-frames-renderers X11)
pods_use_pkg_config_packages(test-viewer
bot2-vis
bot2-lcmgl-renderer)