Skip to content

Commit

Permalink
[cmake] added an example of CMakeLists to build as 3rd party
Browse files Browse the repository at this point in the history
  • Loading branch information
simogasp authored and josch committed May 15, 2017
1 parent 90c7bff commit fcf0f67
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 2.8.12)

project(GluiExamples)

find_package(GLUT REQUIRED)
find_package(OpenGL REQUIRED)

find_package(glui REQUIRED)

add_executable(example1 example1.cpp)
target_link_libraries(example1 glui::glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
add_executable(example2 example2.cpp)
target_link_libraries(example2 glui::glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
add_executable(example3 example3.cpp)
target_link_libraries(example3 glui::glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
add_executable(example4 example4.cpp)
target_link_libraries(example4 glui::glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
add_executable(example5 example5.cpp)
target_link_libraries(example5 glui::glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})
add_executable(example6 example6.cpp)
target_link_libraries(example6 glui::glui_static ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES})

0 comments on commit fcf0f67

Please sign in to comment.