From fb7ce6405b21566615912b4150f971a596c8464b Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Sun, 24 Nov 2024 17:48:47 -0800 Subject: [PATCH] CMake: Add missing target_link_directories() for OCCT. --- src/Mod/Assembly/Gui/CMakeLists.txt | 1 + tests/src/Mod/Assembly/CMakeLists.txt | 1 + tests/src/Mod/Material/CMakeLists.txt | 1 + tests/src/Mod/Measure/CMakeLists.txt | 1 + tests/src/Mod/Mesh/CMakeLists.txt | 1 + tests/src/Mod/MeshPart/CMakeLists.txt | 1 + tests/src/Mod/Part/CMakeLists.txt | 1 + tests/src/Mod/PartDesign/CMakeLists.txt | 1 + tests/src/Mod/Points/CMakeLists.txt | 1 + tests/src/Mod/Sketcher/CMakeLists.txt | 1 + 10 files changed, 10 insertions(+) diff --git a/src/Mod/Assembly/Gui/CMakeLists.txt b/src/Mod/Assembly/Gui/CMakeLists.txt index 7dda6251f0b8..6924b340d829 100644 --- a/src/Mod/Assembly/Gui/CMakeLists.txt +++ b/src/Mod/Assembly/Gui/CMakeLists.txt @@ -5,6 +5,7 @@ include_directories( ${OCC_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS} ) +link_directories(${OCC_LIBRARY_DIR}) set(AssemblyGui_LIBS Assembly diff --git a/tests/src/Mod/Assembly/CMakeLists.txt b/tests/src/Mod/Assembly/CMakeLists.txt index 0b6aaf602ac8..1b1d32dc85ac 100644 --- a/tests/src/Mod/Assembly/CMakeLists.txt +++ b/tests/src/Mod/Assembly/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(Assembly_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Assembly_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Assembly_tests_run gtest_main diff --git a/tests/src/Mod/Material/CMakeLists.txt b/tests/src/Mod/Material/CMakeLists.txt index aab21917da2a..93c4c5da4aab 100644 --- a/tests/src/Mod/Material/CMakeLists.txt +++ b/tests/src/Mod/Material/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(Material_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Material_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Material_tests_run gtest_main diff --git a/tests/src/Mod/Measure/CMakeLists.txt b/tests/src/Mod/Measure/CMakeLists.txt index 161ea0c10377..08ab1ff67342 100644 --- a/tests/src/Mod/Measure/CMakeLists.txt +++ b/tests/src/Mod/Measure/CMakeLists.txt @@ -7,6 +7,7 @@ target_include_directories(Measure_tests_run PUBLIC ${VTK_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Measure_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Measure_tests_run gtest_main diff --git a/tests/src/Mod/Mesh/CMakeLists.txt b/tests/src/Mod/Mesh/CMakeLists.txt index 6796225c4593..791993903d80 100644 --- a/tests/src/Mod/Mesh/CMakeLists.txt +++ b/tests/src/Mod/Mesh/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(Mesh_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Mesh_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Mesh_tests_run gtest_main diff --git a/tests/src/Mod/MeshPart/CMakeLists.txt b/tests/src/Mod/MeshPart/CMakeLists.txt index 24a4b1272d7b..c93056b4ee40 100644 --- a/tests/src/Mod/MeshPart/CMakeLists.txt +++ b/tests/src/Mod/MeshPart/CMakeLists.txt @@ -7,6 +7,7 @@ target_include_directories(MeshPart_tests_run PUBLIC ${VTK_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(MeshPart_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(MeshPart_tests_run gtest_main diff --git a/tests/src/Mod/Part/CMakeLists.txt b/tests/src/Mod/Part/CMakeLists.txt index 923821fcdccb..57898b0e8d9f 100644 --- a/tests/src/Mod/Part/CMakeLists.txt +++ b/tests/src/Mod/Part/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(Part_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Part_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Part_tests_run gtest_main diff --git a/tests/src/Mod/PartDesign/CMakeLists.txt b/tests/src/Mod/PartDesign/CMakeLists.txt index 2077c3f42ef7..a3a03880b4ab 100644 --- a/tests/src/Mod/PartDesign/CMakeLists.txt +++ b/tests/src/Mod/PartDesign/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(PartDesign_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(PartDesign_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(PartDesign_tests_run gtest_main diff --git a/tests/src/Mod/Points/CMakeLists.txt b/tests/src/Mod/Points/CMakeLists.txt index 75b19973945d..ee627574bdb6 100644 --- a/tests/src/Mod/Points/CMakeLists.txt +++ b/tests/src/Mod/Points/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(Points_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Points_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Points_tests_run gtest_main diff --git a/tests/src/Mod/Sketcher/CMakeLists.txt b/tests/src/Mod/Sketcher/CMakeLists.txt index 2931eb9c99a7..bfa6bcbe961a 100644 --- a/tests/src/Mod/Sketcher/CMakeLists.txt +++ b/tests/src/Mod/Sketcher/CMakeLists.txt @@ -5,6 +5,7 @@ target_include_directories(Sketcher_tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS} ) +target_link_directories(Sketcher_tests_run PUBLIC ${OCC_LIBRARY_DIR}) target_link_libraries(Sketcher_tests_run gtest_main