mirror of https://github.com/CGAL/cgal
Merge pull request #4854 from lrineau/Polyhedron-demo_fix_Mesh_3_cmakelist-GF
Polyhedron demo: fix Mesh_3 CMakeLists.txt
This commit is contained in:
commit
1ab4eea551
|
|
@ -22,9 +22,7 @@ if (VTK_FOUND)
|
||||||
if(TARGET VTK::IOImage)
|
if(TARGET VTK::IOImage)
|
||||||
set(VTK_LIBRARIES VTK::IOImage)
|
set(VTK_LIBRARIES VTK::IOImage)
|
||||||
endif()
|
endif()
|
||||||
if(VTK_LIBRARIES)
|
if(NOT VTK_LIBRARIES)
|
||||||
add_definitions(-DCGAL_USE_VTK)
|
|
||||||
else()
|
|
||||||
message(STATUS "NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to.")
|
message(STATUS "NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to.")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
|
@ -39,6 +37,9 @@ if(Boost_FILESYSTEM_FOUND)
|
||||||
qt5_wrap_ui( imgUI_FILES Image_res_dialog.ui raw_image.ui)
|
qt5_wrap_ui( imgUI_FILES Image_res_dialog.ui raw_image.ui)
|
||||||
polyhedron_demo_plugin(io_image_plugin Io_image_plugin Volume_plane_intersection.cpp Raw_image_dialog.cpp ${imgUI_FILES} ${VOLUME_MOC_OUTFILES} KEYWORDS IO Mesh_3)
|
polyhedron_demo_plugin(io_image_plugin Io_image_plugin Volume_plane_intersection.cpp Raw_image_dialog.cpp ${imgUI_FILES} ${VOLUME_MOC_OUTFILES} KEYWORDS IO Mesh_3)
|
||||||
target_link_libraries(io_image_plugin PUBLIC scene_image_item ${VTK_LIBRARIES} CGAL::CGAL_ImageIO)
|
target_link_libraries(io_image_plugin PUBLIC scene_image_item ${VTK_LIBRARIES} CGAL::CGAL_ImageIO)
|
||||||
|
if(VTK_LIBRARIES)
|
||||||
|
target_compile_definitions(io_image_plugin PRIVATE CGAL_USE_VTK)
|
||||||
|
endif()
|
||||||
if(TARGET Boost::filesystem)
|
if(TARGET Boost::filesystem)
|
||||||
target_link_libraries(io_image_plugin PUBLIC Boost::filesystem Boost::system)
|
target_link_libraries(io_image_plugin PUBLIC Boost::filesystem Boost::system)
|
||||||
else()
|
else()
|
||||||
|
|
@ -49,7 +50,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
polyhedron_demo_plugin(mesh_3_optimization_plugin Optimization_plugin
|
polyhedron_demo_plugin(mesh_3_optimization_plugin Optimization_plugin
|
||||||
Optimization_plugin_cgal_code.cpp Optimizer_thread.cpp
|
Optimization_plugin_cgal_code.cpp Optimizer_thread.cpp
|
||||||
${meshingUI_FILES} KEYWORDS IO Mesh_3)
|
${meshingUI_FILES} KEYWORDS Mesh_3)
|
||||||
target_link_libraries(mesh_3_optimization_plugin PUBLIC scene_c3t3_item scene_surface_mesh_item scene_image_item scene_implicit_function_item )
|
target_link_libraries(mesh_3_optimization_plugin PUBLIC scene_c3t3_item scene_surface_mesh_item scene_image_item scene_implicit_function_item )
|
||||||
|
|
||||||
# Use Eigen
|
# Use Eigen
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue