Commit 579ff138 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

new cmake structure in tests

parent 8cf1a192
......@@ -52,6 +52,8 @@ add_subdirectory(mlmc/src)
# Libraries
set(MLMC_LIBRARIES MLMC sprng fftw3 m ${MPP_LIBRARIES})
set(MLMC_TEST_LIBRARIES MLMC sprng fftw3 m ${MPP_TEST_LIBRARIES})
# Executables
add_executable(MLMC-M++ mlmc/src/Main.cpp)
......
# Manage folder structure build folder
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/data/vtk)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/data/gp)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/data/py)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/log)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/data/dual)
# ------- MPI Tests -------
# Test Executables
add_executable(TestMainProgramElliptic TestMainProgramElliptic.cpp)
add_executable(TestMainProgramTransport TestMainProgramTransport.cpp)
#add_executable(TestMultilevelPlotter TestMultilevelPlotter.cpp)
# Linking
target_link_libraries(TestMainProgramElliptic ${MLMC_LIBRARIES} ${GTEST_LIB})
target_link_libraries(TestMainProgramTransport ${MLMC_LIBRARIES} ${GTEST_LIB})
#target_link_libraries(TestMultilevelPlotter ${MLMC_LIBRARIES} ${GTEST_LIB})
# ------- Unit Tests -------
add_executable(TestCirculantEmbedding TestCirculantEmbedding.cpp)
target_link_libraries(TestCirculantEmbedding ${MLMC_LIBRARIES} ${GTEST_LIB})
add_test(TestCirculantEmbedding TestCirculantEmbedding)
add_executable(TestMonteCarlo TestMonteCarlo.cpp)
target_link_libraries(TestMonteCarlo ${MLMC_LIBRARIES} ${GTEST_LIB})
add_test(TestMonteCarlo TestMonteCarlo)
add_executable(TestPDESolver TestPDESolver.cpp)
target_link_libraries(TestPDESolver ${MLMC_LIBRARIES} ${GTEST_LIB})
add_test(TestPDESolver TestPDESolver)
add_executable(TestExponents TestExponents.cpp)
target_link_libraries(TestExponents ${MLMC_LIBRARIES} ${GTEST_LIB})
add_test(TestExponents TestEmpiricMeasures)
add_subdirectory(unit)
add_subdirectory(integration)
\ No newline at end of file
# Manage folder structure build folder
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/integration/data/vtk)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/integration/data/gp)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/integration/data/py)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/integration/log)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests/integration/data/dual)
# ------- MPI Tests -------
add_executable(TestMainProgramElliptic TestMainProgramElliptic.cpp)
target_link_libraries(TestMainProgramElliptic ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_executable(TestMainProgramTransport TestMainProgramTransport.cpp)
target_link_libraries(TestMainProgramTransport ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_executable(TestRandomNumberManager TestRandomNumberManager.cpp)
target_link_libraries(TestRandomNumberManager ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_test(TestRandomNumberManager TestRandomNumberManager)
add_executable(TestCirculantEmbedding TestCirculantEmbedding.cpp)
target_link_libraries(TestCirculantEmbedding ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_test(TestCirculantEmbedding TestCirculantEmbedding)
add_executable(TestMonteCarlo TestMonteCarlo.cpp)
target_link_libraries(TestMonteCarlo ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_test(TestMonteCarlo TestMonteCarlo)
add_executable(TestPDESolver TestPDESolver.cpp)
target_link_libraries(TestPDESolver ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_test(TestPDESolver TestPDESolver)
add_executable(TestExponents TestExponents.cpp)
target_link_libraries(TestExponents ${MLMC_TEST_LIBRARIES} ${GTEST_LIB})
add_test(TestExponents TestExponents)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment