mirror of https://github.com/CGAL/cgal
Fill CGAL_EXECUTABLE_TARGETS wherever that was missing
This commit is contained in:
parent
b8c7cb21bd
commit
94d654b9ab
|
|
@ -152,6 +152,7 @@ function(cgal_arr_2_add_target exe_name source_file)
|
||||||
set(name ${exe_name}_${suffix})
|
set(name ${exe_name}_${suffix})
|
||||||
endif()
|
endif()
|
||||||
add_executable(${name} ${source_file})
|
add_executable(${name} ${source_file})
|
||||||
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${name} )
|
||||||
separate_arguments(flags UNIX_COMMAND "${TESTSUITE_CXXFLAGS}")
|
separate_arguments(flags UNIX_COMMAND "${TESTSUITE_CXXFLAGS}")
|
||||||
target_compile_options(${name} PRIVATE ${flags})
|
target_compile_options(${name} PRIVATE ${flags})
|
||||||
cgal_debug_message(STATUS "# -> target ${name} with TESTSUITE_CXXFLAGS: ${flags}")
|
cgal_debug_message(STATUS "# -> target ${name} with TESTSUITE_CXXFLAGS: ${flags}")
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND CGAL_Core_FOUND)
|
||||||
|
|
||||||
# cpp files
|
# cpp files
|
||||||
add_executable ( HDT2 HDT2.cpp ${CGAL_Qt5_RESOURCE_FILES} ${RESOURCE_FILES} ${UIS})
|
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)
|
target_link_libraries ( HDT2 CGAL::CGAL CGAL::CGAL_Qt5 CGAL::CGAL_Core Qt5::Widgets)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt5 and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt5 and will not be compiled.")
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ macro(create_link_to_program COMPONENT )
|
||||||
target_link_libraries(link_to_${COMPONENT} CGAL::${COMPONENT} ${CGAL_3RD_PARTY_LIBRARIES} ${${COMPONENT}_3RD_PARTY_LIBRARIES} )
|
target_link_libraries(link_to_${COMPONENT} CGAL::${COMPONENT} ${CGAL_3RD_PARTY_LIBRARIES} ${${COMPONENT}_3RD_PARTY_LIBRARIES} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS link_to_${COMPONENT} )
|
||||||
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core)
|
find_package(CGAL QUIET COMPONENTS Core)
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ if ( CGAL_FOUND )
|
||||||
add_executable ( mesh_3D_gray_vtk_image mesh_3D_gray_vtk_image.cpp )
|
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})
|
target_link_libraries( mesh_3D_gray_vtk_image ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${VTK_LIBRARIES})
|
||||||
cgal_add_test( mesh_3D_gray_vtk_image )
|
cgal_add_test( mesh_3D_gray_vtk_image )
|
||||||
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS mesh_3D_gray_vtk_image )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program( "mesh_3D_gray_image.cpp" )
|
create_single_source_cgal_program( "mesh_3D_gray_image.cpp" )
|
||||||
|
|
|
||||||
|
|
@ -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( 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} )
|
#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()
|
else()
|
||||||
message(STATUS "NOTICE: This demo requires Qt5 and will not be compiled.")
|
message(STATUS "NOTICE: This demo requires Qt5 and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND )
|
||||||
PUBLIC demo_framework ${CGAL_LIBRARIES}
|
PUBLIC demo_framework ${CGAL_LIBRARIES}
|
||||||
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
|
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
|
||||||
cgal_add_compilation_test(${item_name})
|
cgal_add_compilation_test(${item_name})
|
||||||
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${item_name} )
|
||||||
endmacro(add_item)
|
endmacro(add_item)
|
||||||
|
|
||||||
add_item(scene_c3t3_item Scene_c3t3_item.cpp)
|
add_item(scene_c3t3_item Scene_c3t3_item.cpp)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue