Tests: move Sketcher test target to appropriate CMakeLists.txt file

This commit is contained in:
wmayer
2023-08-28 14:52:01 +02:00
committed by Chris Hennes
parent 51ebda84ae
commit 1816c2a1aa
3 changed files with 16 additions and 13 deletions

View File

@@ -69,6 +69,7 @@ add_executable(Tests_run)
add_executable(Mesh_tests_run)
add_executable(Part_tests_run)
add_executable(Points_tests_run)
add_executable(Sketcher_tests_run)
add_subdirectory(lib)
add_subdirectory(src)
target_include_directories(Tests_run PUBLIC
@@ -82,16 +83,3 @@ target_link_libraries(Tests_run
FreeCADApp
)
add_executable(Sketcher_tests_run)
add_subdirectory(src/Mod/Sketcher)
target_include_directories(Sketcher_tests_run PUBLIC
${EIGEN3_INCLUDE_DIR}
${OCC_INCLUDE_DIR}
${Python3_INCLUDE_DIRS}
${XercesC_INCLUDE_DIRS}
)
target_link_libraries(Sketcher_tests_run
gtest_main
${Google_Tests_LIBS}
Sketcher
)

View File

@@ -1,3 +1,4 @@
add_subdirectory(Mesh)
add_subdirectory(Part)
add_subdirectory(Points)
add_subdirectory(Sketcher)

View File

@@ -1 +1,15 @@
target_include_directories(Sketcher_tests_run PUBLIC
${EIGEN3_INCLUDE_DIR}
${OCC_INCLUDE_DIR}
${Python3_INCLUDE_DIRS}
${XercesC_INCLUDE_DIRS}
)
target_link_libraries(Sketcher_tests_run
gtest_main
${Google_Tests_LIBS}
Sketcher
)
add_subdirectory(App)