Fill CGAL_EXECUTABLE_TARGETS wherever that was missing

This commit is contained in:
Laurent Rineau 2019-07-25 15:36:38 +02:00
parent b8c7cb21bd
commit 94d654b9ab
6 changed files with 8 additions and 1 deletions

View File

@ -152,6 +152,7 @@ function(cgal_arr_2_add_target exe_name source_file)
set(name ${exe_name}_${suffix})
endif()
add_executable(${name} ${source_file})
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${name} )
separate_arguments(flags UNIX_COMMAND "${TESTSUITE_CXXFLAGS}")
target_compile_options(${name} PRIVATE ${flags})
cgal_debug_message(STATUS "# -> target ${name} with TESTSUITE_CXXFLAGS: ${flags}")

View File

@ -27,6 +27,7 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND)
# cpp files
add_executable ( HDT2 HDT2.cpp ${CGAL_Qt5_RESOURCE_FILES} ${RESOURCE_FILES} ${UIS})
add_to_cached_list( CGAL_EXECUTABLE_TARGETS HDT2 )
target_link_libraries ( HDT2 CGAL::CGAL CGAL::CGAL_Qt5 CGAL::CGAL_Core Qt5::Widgets)
else()
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt5 and will not be compiled.")

View File

@ -23,7 +23,9 @@ macro(create_link_to_program COMPONENT )
else()
target_link_libraries(link_to_${COMPONENT} CGAL::${COMPONENT} ${CGAL_3RD_PARTY_LIBRARIES} ${${COMPONENT}_3RD_PARTY_LIBRARIES} )
endif()
add_to_cached_list( CGAL_EXECUTABLE_TARGETS link_to_${COMPONENT} )
endmacro()
find_package(CGAL QUIET COMPONENTS Core)

View File

@ -94,6 +94,7 @@ if ( CGAL_FOUND )
add_executable ( mesh_3D_gray_vtk_image mesh_3D_gray_vtk_image.cpp )
target_link_libraries( mesh_3D_gray_vtk_image ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${VTK_LIBRARIES})
cgal_add_test( mesh_3D_gray_vtk_image )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS mesh_3D_gray_vtk_image )
endif()
create_single_source_cgal_program( "mesh_3D_gray_image.cpp" )

View File

@ -47,6 +47,7 @@ if(CGAL_FOUND AND CGAL_Core_FOUND AND Qt5_FOUND AND CGAL_Qt5_FOUND)
target_link_libraries( P4HDT2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES} )
#target_link_libraries( Periodic_4_hyperbolic_billiards_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${Boost_LIBRARIES} )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS P4HDT2 )
else()
message(STATUS "NOTICE: This demo requires Qt5 and will not be compiled.")
endif()

View File

@ -232,6 +232,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND )
PUBLIC demo_framework ${CGAL_LIBRARIES}
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
cgal_add_compilation_test(${item_name})
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${item_name} )
endmacro(add_item)
add_item(scene_c3t3_item Scene_c3t3_item.cpp)