cgal/CMake/examples/CMakeLists.txt

22 lines
396 B
CMake

project(CGAL_EXAMPLES)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
file( GLOB list "*" )
foreach( entry ${list} )
if ( IS_DIRECTORY ${entry} )
if ( EXISTS ${entry}/CMakeLists.txt )
message( STATUS "Configuring ${entry} example" )
add_subdirectory( ${entry} )
else()
message( STATUS "Skipping ${entry} example" )
endif()
endif()
endforeach()