Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:repabuild
glui
cmake-add-install.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cmake-add-install.patch of Package glui
Index: glui-2.37/CMakeLists.txt =================================================================== --- glui-2.37.orig/CMakeLists.txt +++ glui-2.37/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8) project(glui) +include(GNUInstallDirs) find_package(GLUT REQUIRED) find_package(OpenGL REQUIRED) @@ -49,10 +50,10 @@ add_library(glui_obj OBJECT ${GLUI_SRCS} set_property(TARGET glui_obj PROPERTY POSITION_INDEPENDENT_CODE 1) add_library(glui SHARED $<TARGET_OBJECTS:glui_obj>) -target_link_libraries(glui ${GLUT_LIBRARIES}) +target_link_libraries(glui ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES}) add_library(glui_static STATIC $<TARGET_OBJECTS:glui_obj>) -target_link_libraries(glui_static ${GLUT_LIBRARIES}) +target_link_libraries(glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES}) add_executable(ppm2array tools/ppm.cpp tools/ppm2array.cpp) target_link_libraries(ppm2array) @@ -69,3 +70,14 @@ add_executable(example5 example/example5 target_link_libraries(example5 glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES}) add_executable(example6 example/example6.cpp) target_link_libraries(example6 glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES}) + +install(FILES include/GL/glui.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GL) + +install(TARGETS glui glui_static ppm2array + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) +install(TARGETS example1 example2 example3 example4 example5 example6 + RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/glui)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor