Skip to content

Commit

Permalink
Revert "transtive linking"
Browse files Browse the repository at this point in the history
This reverts commit ee29e0d.
  • Loading branch information
LiangliangNan committed Jan 13, 2025
1 parent ee29e0d commit 1319f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/method/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ find_package(CGAL REQUIRED COMPONENTS Core)
if (CGAL_FOUND)
message(STATUS "Found CGAL v${CGAL_VERSION}: ${CGAL_INCLUDE_DIRS}")
if (CGAL_VERSION VERSION_GREATER_EQUAL "5.4")
target_link_libraries(${PROJECT_NAME} PUBLIC ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else ()
message(FATAL_ERROR "CGAL v${CGAL_VERSION} found, but v5.4 or above is required. Please install CGAL v5.4 or above")
endif ()
Expand All @@ -58,12 +58,12 @@ find_package(GMP REQUIRED)
if (GMP_FOUND)
message(STATUS "GMP_INCLUDE_DIR: ${GMP_INCLUDE_DIR}")
message(STATUS "GMP_LIBRARIES: ${GMP_LIBRARIES}")
target_link_libraries(${PROJECT_NAME} PUBLIC ${GMP_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${GMP_LIBRARIES})
endif ()

target_include_directories(${PROJECT_NAME} PRIVATE ${POLYFIT_eigen_DIR})

find_package(OpenCV REQUIRED COMPONENTS core imgproc)
message(STATUS "OpenCV_INCLUDE_DIRS: ${OpenCV_INCLUDE_DIRS}")
message(STATUS "OpenCV_LIBS: ${OpenCV_LIBS}")
target_link_libraries(${PROJECT_NAME} PUBLIC basic math model renderer ${OpenCV_LIBS})
target_link_libraries(${PROJECT_NAME} basic math model renderer ${OpenCV_LIBS})

0 comments on commit 1319f69

Please sign in to comment.