diff --git a/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt b/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt index 9a6c1d8f2d7..04c88facf76 100644 --- a/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt +++ b/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/CMakeLists.txt @@ -67,13 +67,15 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND) ${arrangement_2_uis} ${arrangement_2_resources} ) -qt5_use_modules(arrangement_2 Widgets Script) + qt5_use_modules(arrangement_2 Widgets Script) target_link_libraries( arrangement_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${QT_LIBRARIES} ) + add_to_cached_list( CGAL_EXECUTABLE_TARGETS arrangement_2 ) + else() message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.") diff --git a/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt b/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt index 6d302f3550e..0756a47f248 100644 --- a/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt +++ b/Polyline_simplification_2/demo/Polyline_simplification_2/CMakeLists.txt @@ -43,6 +43,8 @@ target_link_libraries( Polyline_simplification_2 ${QT_LIBRARIES} ) # Link with CGAL target_link_libraries( Polyline_simplification_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES}) +add_to_cached_list( CGAL_EXECUTABLE_TARGETS Polyline_simplification_2 ) + else() message(STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")