mirror of https://github.com/CGAL/cgal
do not define several times
This commit is contained in:
parent
08b1457649
commit
5f750d5bb6
|
|
@ -167,10 +167,12 @@ endforeach()
|
|||
#
|
||||
# Define a specific target for basic viewer
|
||||
#
|
||||
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
|
||||
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
|
||||
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
|
||||
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)
|
||||
if (NOT TARGET CGAL::CGAL_Basic_viewer)
|
||||
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
|
||||
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
|
||||
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
|
||||
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)
|
||||
endif()
|
||||
|
||||
include(${CGAL_CONFIG_DIR}/CGALConfigVersion.cmake)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue