Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > acd30aff1fef52f2be0a089ae33cd62e > files > 163

lib64sfml-devel-2.2-1.mga5.x86_64.rpm


set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/opengl)

# all source files
set(SRC ${SRCROOT}/OpenGL.cpp)

# find OpenGL and GLU
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
set(ADDITIONAL_LIBRARIES ${OPENGL_LIBRARIES})

# define the opengl target
sfml_add_example(opengl GUI_APP
                 SOURCES ${SRC}
                 DEPENDS sfml-graphics sfml-window sfml-system ${ADDITIONAL_LIBRARIES})