mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
enable catch unit tests
This commit is contained in:
parent
5ada92bcdb
commit
ff3e88e024
@ -40,6 +40,7 @@ build_win:
|
||||
-DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
|
||||
-DUSE_OCC=ON
|
||||
-DUSE_CCACHE=ON
|
||||
-DENABLE_UNIT_TESTS=ON
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
- cmake --build . --target install --config Release
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
cd
|
||||
mkdir -p build/netgen
|
||||
cd build/netgen
|
||||
cmake ../../src/netgen -DUSE_CCACHE=ON -DBUILD_TYPE=DEBUG
|
||||
cmake ../../src/netgen -DUSE_CCACHE=ON -DBUILD_TYPE=DEBUG -DENABLE_UNIT_TESTS=ON
|
||||
make -j12
|
||||
make install
|
||||
|
@ -1,6 +1,6 @@
|
||||
cd
|
||||
mkdir -p build/netgen
|
||||
cd build/netgen
|
||||
cmake ../../src/netgen -DUSE_CCACHE=ON -DUSE_MPI=ON
|
||||
cmake ../../src/netgen -DUSE_CCACHE=ON -DUSE_MPI=ON -DENABLE_UNIT_TESTS=ON
|
||||
make -j12
|
||||
make install
|
||||
|
@ -14,7 +14,7 @@ add_test(NAME unit_tests_built COMMAND ${CMAKE_COMMAND} --build . --target unit_
|
||||
|
||||
macro(add_unit_test name sources)
|
||||
add_executable(test_${name} ${sources} )
|
||||
target_link_libraries(test_${name} ngcore catch_main ${PYTHON_LIBRARIES})
|
||||
target_link_libraries(test_${name} ngcore catch_main mesh ${PYTHON_LIBRARIES})
|
||||
|
||||
add_dependencies(unit_tests test_${name})
|
||||
add_test(NAME unit_${name} COMMAND test_${name})
|
||||
|
Loading…
Reference in New Issue
Block a user