From 670cf2bc24585ecabae3dd44637ce51e840e586a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 28 Nov 2017 17:55:47 +0100 Subject: [PATCH] Fix CTest "compilation lines" --- CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt b/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt index a4836c66174..26a9442a90e 100644 --- a/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt +++ b/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt @@ -125,27 +125,27 @@ if ( CGAL_FOUND ) message(STATUS "Set Ipelets install dir: ${IPELET_INSTALL_DIR}") endif() + include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake) + foreach(IPELET ${CGAL_IPELETS}) add_library(CGAL_${IPELET} MODULE ${IPELET}.cpp) add_to_cached_list(CGAL_EXECUTABLE_TARGETS CGAL_${IPELET}) - target_link_libraries(CGAL_${IPELET} ${IPE_LIBRARIES}) + target_link_libraries(CGAL_${IPELET} PRIVATE CGAL::CGAL ${IPE_LIBRARIES}) if ( IPELET_INSTALL_DIR ) install(TARGETS CGAL_${IPELET} DESTINATION ${IPELET_INSTALL_DIR}) if (WITH_IPE_7) install(FILES ./lua/libCGAL_${IPELET}.lua DESTINATION ${IPELET_INSTALL_DIR}) #only for ipe 7 endif() endif () + cgal_add_compilation_test(CGAL_${IPELET}) endforeach(IPELET) + target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core) #example in doc not installed add_library(simple_triangulation MODULE simple_triangulation.cpp) add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation) target_link_libraries(simple_triangulation ${IPE_LIBRARIES}) - include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake) - - foreach(target ${CGAL_IPELETS} simple_triangulation) - cgal_add_compilation_test(${target}) - endforeach() + cgal_add_compilation_test(simple_triangulation) else() message(STATUS "NOTICE: This program requires the Ipe include files and library, and will not be compiled.")