mirror of https://github.com/CGAL/cgal
Fix CMakeLists.txt
This commit is contained in:
parent
c61639cfd7
commit
639b513993
|
|
@ -5,25 +5,36 @@ cmake_minimum_required(VERSION 3.1...3.23)
|
||||||
project(Straight_skeleton_2_Tests)
|
project(Straight_skeleton_2_Tests)
|
||||||
|
|
||||||
find_package(CGAL REQUIRED COMPONENTS Qt5 Core)
|
find_package(CGAL REQUIRED COMPONENTS Qt5 Core)
|
||||||
|
find_package(LEDA QUIET)
|
||||||
|
|
||||||
include_directories(BEFORE "include")
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
# create a target per cppfile
|
create_single_source_cgal_program("issue4533.cpp")
|
||||||
file(
|
create_single_source_cgal_program("issue4684.cpp")
|
||||||
GLOB cppfiles
|
create_single_source_cgal_program("test_sls.cpp")
|
||||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
create_single_source_cgal_program("test_sls_previous_issues.cpp")
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
create_single_source_cgal_program("test_sls_traits.cpp")
|
||||||
foreach(cppfile ${cppfiles})
|
create_single_source_cgal_program("test_straight_skeleton_copy.cpp")
|
||||||
create_single_source_cgal_program("${cppfile}")
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
if(CGAL_Qt5_FOUND)
|
if(CGAL_Qt5_FOUND)
|
||||||
target_link_libraries(issue4684 PUBLIC CGAL::CGAL_Basic_viewer)
|
target_link_libraries(issue4684 PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
target_link_libraries(issue7149 PUBLIC CGAL::CGAL_Basic_viewer)
|
target_link_libraries(test_sls_previous_issues PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
target_link_libraries(issue7284 PUBLIC CGAL::CGAL_Basic_viewer)
|
endif()
|
||||||
target_link_libraries(test_sls_previous_issues PUBLIC CGAL::CGAL_Basic_viewer)
|
|
||||||
target_link_libraries(test_sls_offset PUBLIC CGAL::CGAL_Basic_viewer)
|
if (CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
target_link_libraries(test_sls_weighted_offset PUBLIC CGAL::CGAL_Basic_viewer)
|
create_single_source_cgal_program("issue7149.cpp")
|
||||||
target_link_libraries(test_sls_weighted_polygons PUBLIC CGAL::CGAL_Basic_viewer)
|
create_single_source_cgal_program("issue7284.cpp")
|
||||||
target_link_libraries(test_sls_weighted_polygons_with_holes PUBLIC CGAL::CGAL_Basic_viewer)
|
create_single_source_cgal_program("test_sls_offset.cpp")
|
||||||
|
create_single_source_cgal_program("test_sls_weighted_offset.cpp")
|
||||||
|
create_single_source_cgal_program("test_sls_simple.cpp")
|
||||||
|
create_single_source_cgal_program("test_sls_weighted_polygons.cpp")
|
||||||
|
create_single_source_cgal_program("test_sls_weighted_polygons_with_holes.cpp")
|
||||||
|
if(CGAL_Qt5_FOUND)
|
||||||
|
target_link_libraries(issue7149 PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
|
target_link_libraries(issue7284 PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
|
target_link_libraries(test_sls_offset PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
|
target_link_libraries(test_sls_weighted_offset PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
|
target_link_libraries(test_sls_weighted_polygons PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
|
target_link_libraries(test_sls_weighted_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -5,18 +5,14 @@ cmake_minimum_required(VERSION 3.1...3.23)
|
||||||
project(Straight_skeleton_extrusion_2_Tests)
|
project(Straight_skeleton_extrusion_2_Tests)
|
||||||
|
|
||||||
find_package(CGAL REQUIRED COMPONENTS Qt5 Core)
|
find_package(CGAL REQUIRED COMPONENTS Qt5 Core)
|
||||||
|
find_package(LEDA QUIET)
|
||||||
|
|
||||||
include_directories(BEFORE "include")
|
include_directories(BEFORE "include")
|
||||||
|
|
||||||
# create a target per cppfile
|
if (CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
file(
|
create_single_source_cgal_program("test_sls_extrude.cpp")
|
||||||
GLOB cppfiles
|
|
||||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
|
||||||
foreach(cppfile ${cppfiles})
|
|
||||||
create_single_source_cgal_program("${cppfile}")
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
if(CGAL_Qt5_FOUND)
|
if(CGAL_Qt5_FOUND)
|
||||||
target_link_libraries(test_sls_extrude PUBLIC CGAL::CGAL_Basic_viewer)
|
target_link_libraries(test_sls_extrude PUBLIC CGAL::CGAL_Basic_viewer)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue