ci: fix separation of docker build and test phases
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user