-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] added an example of CMakeLists to build as 3rd party
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |