Add a target CGALlab_compile_all_plugins

This commit is contained in:
Laurent Rineau 2024-05-24 16:55:10 +02:00
parent 7befb9c86d
commit 0ba688ae6c
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,6 @@
#include <iostream>
int main()
{
std::cout << "This executable is not intended to be run.\nPlease run the CGALlab executable instead.\n";
return 0;
}

View File

@ -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})

View File

@ -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)