Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Explicitly linking against X11 #8

Open
wants to merge 1 commit into
base: libbot-openhumanoids
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bot2-frames/src/renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pods_install_pkg_config_file(bot2-frames-renderers

#build the test-viewer
add_executable(test-viewer test_viewer.c)
target_link_libraries(test-viewer ${GLUT_LIBRARIES} bot2-frames-renderers)
target_link_libraries(test-viewer ${GLUT_LIBRARIES} bot2-frames-renderers X11)
pods_use_pkg_config_packages(test-viewer
bot2-vis
bot2-lcmgl-renderer)
2 changes: 1 addition & 1 deletion bot2-lcmgl/src/lcmgl-viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ add_executable(bot-lcmgl-viewer
udp_util.c
view_menu.c
)
target_link_libraries(bot-lcmgl-viewer bot2-lcmgl-renderer)
target_link_libraries(bot-lcmgl-viewer bot2-lcmgl-renderer X11)
pods_use_pkg_config_packages(bot-lcmgl-viewer bot2-vis)


Expand Down
2 changes: 1 addition & 1 deletion bot2-vis/src/rwx-viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ add_definitions(-std=gnu99)
add_executable(bot-rwx-viewer
main.c
renderer_rwx.c)

target_link_libraries(bot-rwx-viewer X11)
pods_use_pkg_config_packages(bot-rwx-viewer bot2-vis) # need header as well as target link library

pods_install_executables(bot-rwx-viewer)
1 change: 1 addition & 0 deletions bot2-vis/src/testers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ set(testers
foreach(tester ${testers})
add_executable(${tester} "${tester}.c")
pods_use_pkg_config_packages(${tester} bot2-vis) # need headers as well as bot2-vis target
target_link_libraries(${tester} X11)
endforeach()
2 changes: 1 addition & 1 deletion bot2-vis/src/wavefront-viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ add_definitions(-std=gnu99)
add_executable(bot-wavefront-viewer
main.c
renderer_wavefront.c)

target_link_libraries(bot-wavefront-viewer X11)
pods_use_pkg_config_packages(bot-wavefront-viewer bot2-vis) # need headers as well as target link libraries

pods_install_executables(bot-wavefront-viewer)