Add some caching in new demos

This commit is contained in:
Maxime Gimeno 2019-08-16 12:26:24 +02:00
parent fe7d83d67e
commit 92c9250855
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND (CGAL_Core_FOUND OR LEDA_FOUN
# cpp files
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)
else()
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core (or LEDA), and Qt5 and will not be compiled.")

View File

@ -39,6 +39,7 @@ if(CGAL_FOUND AND (CGAL_Core_FOUND OR LEDA_FOUND) AND Qt5_FOUND AND CGAL_Qt5_FOU
if(LEDA_FOUND)
target_link_libraries( P4HDT2 PRIVATE ${LEDA_LIBRARIES} )
endif()
add_to_cached_list( CGAL_EXECUTABLE_TARGETS P4HDT2 )
else()
message(STATUS "NOTICE: This demo requires Qt5 and will not be compiled.")
endif()