Move all the examples' CMake logic into the examples directory

This commit is contained in:
Matt Williams
2015-02-28 10:19:17 +00:00
parent 969310f327
commit 32b07659a8
2 changed files with 17 additions and 23 deletions

View File

@ -1,7 +1,14 @@
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(Basic)
ADD_SUBDIRECTORY(Paging)
ADD_SUBDIRECTORY(OpenGL)
ADD_SUBDIRECTORY(SmoothLOD)
ADD_SUBDIRECTORY(DecodeOnGPU)
ADD_SUBDIRECTORY(Python)
find_package(Qt5OpenGL 5.2)
set_package_properties(Qt5OpenGL PROPERTIES DESCRIPTION "C++ framework" URL http://qt-project.org)
set_package_properties(Qt5OpenGL PROPERTIES TYPE RECOMMENDED PURPOSE "Building the examples")
if(Qt5OpenGL_FOUND)
SET(BUILD_EXAMPLES ON PARENT_SCOPE)
ADD_SUBDIRECTORY(Basic)
ADD_SUBDIRECTORY(Paging)
ADD_SUBDIRECTORY(OpenGL)
ADD_SUBDIRECTORY(SmoothLOD)
ADD_SUBDIRECTORY(DecodeOnGPU)
ADD_SUBDIRECTORY(Python)
endif()