enable catch unit tests

This commit is contained in:
Christopher Lackner 2019-08-22 10:17:57 +02:00
parent 5ada92bcdb
commit ff3e88e024
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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})