Skip to content

Commit

Permalink
CMake: Add missing target_link_directories() for OCCT.
Browse files Browse the repository at this point in the history
  • Loading branch information
oursland authored and chennes committed Nov 26, 2024
1 parent 33a83f0 commit fb7ce64
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Assembly/Gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include_directories(
${OCC_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS}
)
link_directories(${OCC_LIBRARY_DIR})

set(AssemblyGui_LIBS
Assembly
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Assembly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Material/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Measure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Mesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/MeshPart/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Part/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/PartDesign/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Points/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/src/Mod/Sketcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb7ce64

Please sign in to comment.