That will suppress the warnings about `CMP0167` (from CMake 3.30): ``` CMake Warning (dev) at cmake/modules/display-third-party-libs-versions.cmake:37 (find_package): Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake --help-policy CMP0167" for policy details. Use the cmake_policy command to set the policy and suppress this warning. ```
14 lines
330 B
CMake
14 lines
330 B
CMake
cmake_minimum_required(VERSION 3.12...3.31)
|
|
project(RangeSegmentTrees_Examples)
|
|
|
|
find_package(CGAL REQUIRED)
|
|
|
|
# create a target per cppfile
|
|
file(
|
|
GLOB cppfiles
|
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
|
foreach(cppfile ${cppfiles})
|
|
create_single_source_cgal_program("${cppfile}")
|
|
endforeach()
|