mirror of https://github.com/CGAL/cgal
Add a compilation_test for demo_framework in the Polyhedorn_Demo and make everythink else depend on it, to try and fix the truncated file errors in the testsuite
This commit is contained in:
parent
92b6a98e43
commit
a4b171d77f
|
|
@ -192,6 +192,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND )
|
||||||
target_link_libraries(demo_framework
|
target_link_libraries(demo_framework
|
||||||
PUBLIC Qt5::OpenGL Qt5::Widgets Qt5::Gui Qt5::Script
|
PUBLIC Qt5::OpenGL Qt5::Widgets Qt5::Gui Qt5::Script
|
||||||
)
|
)
|
||||||
|
cgal_add_compilation_test(demo_framework)
|
||||||
# Let's define `three_EXPORT` during the compilation of `demo_framework`,
|
# Let's define `three_EXPORT` during the compilation of `demo_framework`,
|
||||||
# in addition of `demo_framework_EXPORT` (defined automatically by
|
# in addition of `demo_framework_EXPORT` (defined automatically by
|
||||||
# CMake). That is to deal with the visibility of symbols of
|
# CMake). That is to deal with the visibility of symbols of
|
||||||
|
|
@ -226,6 +227,11 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND )
|
||||||
PUBLIC demo_framework ${CGAL_LIBRARIES}
|
PUBLIC demo_framework ${CGAL_LIBRARIES}
|
||||||
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
|
Qt5::OpenGL Qt5::Gui Qt5::Script Qt5::Widgets)
|
||||||
cgal_add_compilation_test(${item_name})
|
cgal_add_compilation_test(${item_name})
|
||||||
|
if(BUILD_TESTING)
|
||||||
|
set_tests_properties(
|
||||||
|
compilation_of__${item_name}
|
||||||
|
PROPERTIES DEPENDS compilation__of_demo_framework)
|
||||||
|
endif()
|
||||||
endmacro(add_item)
|
endmacro(add_item)
|
||||||
|
|
||||||
add_item(scene_c3t3_item Scene_c3t3_item.cpp)
|
add_item(scene_c3t3_item Scene_c3t3_item.cpp)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,11 @@ include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
PROPERTY LIBRARY_OUTPUT_DIRECTORY
|
PROPERTY LIBRARY_OUTPUT_DIRECTORY
|
||||||
"${CGAL_POLYHEDRON_DEMO_PLUGINS_DIR}")
|
"${CGAL_POLYHEDRON_DEMO_PLUGINS_DIR}")
|
||||||
cgal_add_compilation_test(${plugin_name})
|
cgal_add_compilation_test(${plugin_name})
|
||||||
|
if(BUILD_TESTING)
|
||||||
|
set_tests_properties(
|
||||||
|
compilation_of__${plugin_name}
|
||||||
|
PROPERTIES DEPENDS compilation__of_demo_framework)
|
||||||
|
endif()
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${plugin_name} )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${plugin_name} )
|
||||||
# Link with Qt
|
# Link with Qt
|
||||||
target_link_libraries( ${plugin_name} PUBLIC ${QT_LIBRARIES} )
|
target_link_libraries( ${plugin_name} PUBLIC ${QT_LIBRARIES} )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue