ECG/exercise4/build/cmake/CMakeLists.txt

52 lines
1.1 KiB
Text
Raw Normal View History

2019-06-07 06:18:22 +00:00
cmake_minimum_required( VERSION 2.6 )
project(exercise4)
# Gebraucht werden OpenGL und GLUT
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
# Definition der Headerdateien
set(HEADERS
../../include/abstract_curve.h
../../include/application.h
../../include/bezier_curve.h
../../include/bspline.h
../../include/control_points_editor.h
../../include/curve_renderer.h
../../include/hermite_spline.h
../../include/lagrange_curve.h
../../include/tiny_vec.h
)
# Definition der Sourcedateien
set(SOURCES
../../src/application.cpp
../../src/control_points_editor.cpp
../../src/main.cpp
../../src/abstract_curve.cpp
../../src/bezier_curve.cpp
../../src/bspline.cpp
../../src/curve_renderer.cpp
../../src/hermite_spline.cpp
../../src/lagrange_curve.cpp
)
# Includeverzeichnisse setzen
include_directories(
../../include
)
# Support fuer C++-11 aktivieren
set(CMAKE_CXX_FLAGS "-std=c++11")
# Ziel hinzufuegen
add_executable(exercise4
${SOURCES}
${HEADERS}
)
# Bibliotheken linken
target_link_libraries(exercise4 ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})