mirror of https://github.com/CGAL/cgal
fix build of tests/examples/demos for a release
it will not work in branch build mode but I'm not sure this is something we want to support.
This commit is contained in:
parent
b0e2e44894
commit
edd46b9e29
|
|
@ -9,7 +9,7 @@ function(process_CGAL_subdirectory entry subdir type_name)
|
|||
make_directory("${CMAKE_BINARY_DIR}/${subdir}/${ENTRY_DIR_NAME}")
|
||||
endif()
|
||||
|
||||
message("\n-- Configuring ${subdir} in ${subdir}/${ENTRY_DIR_NAME}")
|
||||
message("-- Configuring ${subdir} in ${subdir}/${ENTRY_DIR_NAME}")
|
||||
|
||||
set(source_dir "")
|
||||
if(EXISTS ${entry}/CMakeLists.txt)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,16 @@
|
|||
project(CGAL_Demos)
|
||||
|
||||
cmake_minimum_required(VERSION 3.12...3.31)
|
||||
|
||||
if(NOT CGAL_MODULES_DIR)
|
||||
find_package(CGAL REQUIRED)
|
||||
endif()
|
||||
include(${CGAL_MODULES_DIR}/CGALHelpers.cmake)
|
||||
CGAL_handle_subdirectories(demo demos)
|
||||
file(GLOB pkgs RELATIVE ${CMAKE_SOURCE_DIR} "*")
|
||||
list(SORT pkgs)
|
||||
|
||||
message("== Generating build files for demos ==")
|
||||
foreach(pkg ${pkgs})
|
||||
set(pkg_dir ${CMAKE_SOURCE_DIR}/${pkg})
|
||||
if(IS_DIRECTORY "${pkg_dir}" AND EXISTS "${pkg_dir}/CMakeLists.txt")
|
||||
message("\n-- Configuring ${pkg}")
|
||||
add_subdirectory(${pkg_dir} "${CMAKE_BINARY_DIR}/${pkg}")
|
||||
endif()
|
||||
endforeach()
|
||||
message("== Generating build files for done (DONE) ==")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,16 @@
|
|||
project(CGAL_Examples)
|
||||
|
||||
cmake_minimum_required(VERSION 3.12...3.31)
|
||||
if(NOT CGAL_MODULES_DIR)
|
||||
find_package(CGAL REQUIRED)
|
||||
endif()
|
||||
include(${CGAL_MODULES_DIR}/CGALHelpers.cmake)
|
||||
CGAL_handle_subdirectories(examples examples)
|
||||
|
||||
file(GLOB pkgs RELATIVE ${CMAKE_SOURCE_DIR} "*")
|
||||
list(SORT pkgs)
|
||||
|
||||
message("== Generating build files for examples ==")
|
||||
foreach(pkg ${pkgs})
|
||||
set(pkg_dir ${CMAKE_SOURCE_DIR}/${pkg})
|
||||
if(IS_DIRECTORY "${pkg_dir}" AND EXISTS "${pkg_dir}/CMakeLists.txt")
|
||||
message("\n-- Configuring ${pkg}")
|
||||
add_subdirectory(${pkg_dir} "${CMAKE_BINARY_DIR}/${pkg}")
|
||||
endif()
|
||||
endforeach()
|
||||
message("== Generating build files for done (DONE) ==")
|
||||
|
|
|
|||
|
|
@ -1,8 +1,16 @@
|
|||
project(CGAL_Tests)
|
||||
|
||||
cmake_minimum_required(VERSION 3.12...3.31)
|
||||
|
||||
file(GLOB pkgs RELATIVE ${CMAKE_SOURCE_DIR} "*")
|
||||
list(SORT pkgs)
|
||||
|
||||
if(NOT CGAL_MODULES_DIR)
|
||||
find_package(CGAL REQUIRED)
|
||||
endif()
|
||||
include(${CGAL_MODULES_DIR}/CGALHelpers.cmake)
|
||||
CGAL_handle_subdirectories(test tests)
|
||||
message("== Generating build files for tests ==")
|
||||
foreach(pkg ${pkgs})
|
||||
set(pkg_dir ${CMAKE_SOURCE_DIR}/${pkg})
|
||||
if(IS_DIRECTORY "${pkg_dir}" AND EXISTS "${pkg_dir}/CMakeLists.txt")
|
||||
message("\n-- Configuring ${pkg}")
|
||||
add_subdirectory(${pkg_dir} "${CMAKE_BINARY_DIR}/${pkg}")
|
||||
endif()
|
||||
endforeach()
|
||||
message("== Generating build files for done (DONE) ==")
|
||||
|
|
|
|||
Loading…
Reference in New Issue