solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 700871661b21ccafa3e929a5a4f7da348ffa02dd
parent 7e115be20c0149ffd2440a189a2c7260669dd72f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 29 Nov 2016 10:26:31 +0100

Update the project management of the tests

Make a static library from the code shared between the tests.

Diffstat:
Mcmake/CMakeLists.txt | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -120,16 +120,19 @@ rcmake_setup_devel(solstice-solver SolSolver ${VERSION} solstice/ssol_version.h) if(NOT NO_TEST) function(new_test _name) add_executable(${_name} - ${SSOL_SOURCE_DIR}/test_ssol_geometries.h - ${SSOL_SOURCE_DIR}/test_ssol_materials.h - ${SSOL_SOURCE_DIR}/test_ssol_utils.h - ${SSOL_SOURCE_DIR}/test_ssol_utils.c - ${SSOL_SOURCE_DIR}/${_name}.c) - target_link_libraries(${_name} solstice-solver RSys Star3D StarSP) + ${SSOL_SOURCE_DIR}/${_name}.c) + target_link_libraries(${_name} + solstice-solver solstice-test RSys Star3D StarSP) add_test(${_name} ${_name}) rcmake_set_test_runtime_dirs(${_name} _runtime_dirs) endfunction() + add_library(solstice-test STATIC + ${SSOL_SOURCE_DIR}/test_ssol_geometries.h + ${SSOL_SOURCE_DIR}/test_ssol_materials.h + ${SSOL_SOURCE_DIR}/test_ssol_utils.h + ${SSOL_SOURCE_DIR}/test_ssol_utils.c) + new_test(test_ssol_atmosphere) new_test(test_ssol_device) new_test(test_ssol_estimator)