ci: fix separation of docker build and test phases

This commit is contained in:
2025-11-09 11:02:38 +01:00
parent 3c82f2934c
commit d991dd38a0
3 changed files with 20 additions and 41 deletions
+5 -6
View File
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
project(arc-core-test)
project(arc-core-occt-tests)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -7,21 +7,20 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Catch2 3 REQUIRED)
add_executable(tests
/app/test/point-test.cpp
/app/src/point.cpp
point-test.cpp
)
target_include_directories(tests PRIVATE
/app/src/include
../src/include
/usr/local/include/opencascade
)
# Link the library from the build folder
target_link_libraries(tests PRIVATE
../build/libocct.so
Catch2::Catch2WithMain
/usr/local/lib/libocct.so
)
include(CTest)
include(Catch)
catch_discover_tests(tests)