From 1c70f5ec495d3fe09e01f2d4d41dbbeb2c6c419d Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 3 Apr 2015 13:07:00 +0200 Subject: [PATCH] Fix `make demos` The Arr_2 and Polyline_simplification_2 demos were not referenced in CGAL_EXECUTABLE_TARGETS. --- .../demo/Arrangement_on_surface_2/CMakeLists.txt | 4 +++- .../demo/Polyline_simplification_2/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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.")