mirror of https://github.com/CGAL/cgal
36 lines
701 B
CMake
36 lines
701 B
CMake
project(CGAL_DEMOS)
|
|
|
|
cmake_minimum_required(VERSION 2.6.2)
|
|
|
|
if (CGAL_BRANCH_BUILD)
|
|
|
|
foreach (package ${CGAL_CONFIGURED_PACKAGES})
|
|
#message (STATUS "Current package: ${package}")
|
|
file( GLOB listtmp "${package}/demo/*")
|
|
list(APPEND list ${listtmp})
|
|
endforeach()
|
|
|
|
else()
|
|
|
|
file( GLOB list "*")
|
|
|
|
endif()
|
|
|
|
list( SORT list )
|
|
|
|
foreach( entry ${list} )
|
|
|
|
if (NOT ${entry} MATCHES ".*\\.svn\$" AND IS_DIRECTORY ${entry} )
|
|
|
|
file(GLOB files "${entry}/*.cpp")
|
|
|
|
# If there is no .cpp files, ignore the sub-directory
|
|
if(files)
|
|
process_CGAL_subdirectory("${entry}" demo demo)
|
|
# Note: process_CGAL_subdirectory is defined in ../CMakeLists.txt
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endforeach()
|