diff --git a/Lab/demo/Lab/CGALlab_compile_all_plugins.cpp b/Lab/demo/Lab/CGALlab_compile_all_plugins.cpp new file mode 100644 index 00000000000..4e5db08b1bb --- /dev/null +++ b/Lab/demo/Lab/CGALlab_compile_all_plugins.cpp @@ -0,0 +1,6 @@ +#include +int main() +{ +std::cout << "This executable is not intended to be run.\nPlease run the CGALlab executable instead.\n"; + return 0; +} diff --git a/Lab/demo/Lab/CGALlab_macros.cmake b/Lab/demo/Lab/CGALlab_macros.cmake index 84d3bb25a49..73f2733bc79 100644 --- a/Lab/demo/Lab/CGALlab_macros.cmake +++ b/Lab/demo/Lab/CGALlab_macros.cmake @@ -1,6 +1,12 @@ +include_guard() + include(AddFileDependencies) include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake) +add_custom_target(CGALlab_all_plugins) +add_executable(CGALlab_compile_all_plugins CGALlab_compile_all_plugins.cpp) +add_dependencies(CGALlab_compile_all_plugins CGALlab_all_plugins) + macro(cgal_lab_plugin plugin_name plugin_implementation_base_name) cmake_parse_arguments(ARG "" "" "KEYWORDS" ${ARGN}) list_split(option ARGN_TAIL ${ARG_UNPARSED_ARGUMENTS} ) @@ -48,6 +54,7 @@ include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake) add_dependencies( ${plugin_name} CGALlab ) endif() if(NOT TARGET CGALlab_all_plugins) + message(AUTHOR_WARNING "CGALlab_all_plugins target not found, creating it") add_custom_target(CGALlab_all_plugins) endif() add_dependencies(CGALlab_all_plugins ${plugin_name}) diff --git a/Lab/demo/Lab/CMakeLists.txt b/Lab/demo/Lab/CMakeLists.txt index 59c7f4c956d..53dc1409c89 100644 --- a/Lab/demo/Lab/CMakeLists.txt +++ b/Lab/demo/Lab/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1...3.23) +cmake_minimum_required(VERSION 3.11...3.23) project(Lab_Demo) include(FeatureSummary)