Fix CTest "compilation lines"

This commit is contained in:
Laurent Rineau 2017-11-28 17:55:47 +01:00
parent fe132099ad
commit 670cf2bc24
1 changed files with 6 additions and 6 deletions

View File

@ -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.")