Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored all unit tests so that TUDAT_DISABLE_TESTS is transparently used #639

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 77 additions & 50 deletions Tudat/Astrodynamics/Aerodynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,59 +58,86 @@ if(USE_NRLMSISE00)
"${SRCROOT}${AERODYNAMICSDIR}/nrlmsise00InputFunctions.h")
endif( )

# Add static libraries.
# Add static libraries
add_library(tudat_aerodynamics STATIC ${AERODYNAMICS_SOURCES} ${AERODYNAMICS_HEADERS})
setup_tudat_library_target(tudat_aerodynamics "${SRCROOT}{AERODYNAMICSDIR}")

# Add unit tests.
add_executable(test_AerodynamicMomentAndAerodynamicForce "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestAerodynamicMomentAndAerodynamicForce.cpp")
setup_custom_test_program(test_AerodynamicMomentAndAerodynamicForce "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_AerodynamicMomentAndAerodynamicForce ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

add_executable(test_AerodynamicsNamespace "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestAerodynamicsNamespace.cpp")
setup_custom_test_program(test_AerodynamicsNamespace "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_AerodynamicsNamespace tudat_aerodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_AerodynamicCoefficientGenerator "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestCoefficientGenerator.cpp")
setup_custom_test_program(test_AerodynamicCoefficientGenerator "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_AerodynamicCoefficientGenerator tudat_aerodynamics tudat_geometric_shapes tudat_interpolators tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_ExponentialAtmosphere "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestExponentialAtmosphere.cpp")
setup_custom_test_program(test_ExponentialAtmosphere "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_ExponentialAtmosphere tudat_aerodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_CustomConstantTemperatureAtmosphere "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestCustomConstantTemperatureAtmosphere.cpp")
setup_custom_test_program(test_CustomConstantTemperatureAtmosphere "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_CustomConstantTemperatureAtmosphere tudat_aerodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_TabulatedAtmosphere "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestTabulatedAtmosphere.cpp")
setup_custom_test_program(test_TabulatedAtmosphere "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_TabulatedAtmosphere tudat_aerodynamics tudat_input_output tudat_interpolators
tudat_basic_mathematics tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_TabulatedAerodynamicCoefficients "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestTabulatedAerodynamicCoefficients.cpp")
setup_custom_test_program(test_TabulatedAerodynamicCoefficients "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_TabulatedAerodynamicCoefficients ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

add_executable(test_HeatTransfer "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestHeatTransfer.cpp")
setup_custom_test_program(test_HeatTransfer "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_HeatTransfer tudat_aerodynamics tudat_root_finders tudat_basic_mathematics
tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_ControlSurfaceIncrements "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestControlSurfaceIncrements.cpp")
setup_custom_test_program(test_ControlSurfaceIncrements "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_ControlSurfaceIncrements ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

add_executable(test_AerodynamicCoefficientsFromFile "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestAerodynamicCoefficientsFromFile.cpp")
setup_custom_test_program(test_AerodynamicCoefficientsFromFile "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_AerodynamicCoefficientsFromFile ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

add_executable(test_WindModel "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestWindModel.cpp")
setup_custom_test_program(test_WindModel "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_WindModel ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})
# Add unit tests
set(AERO_TEST_DIR "${SRCROOT}${AERODYNAMICSDIR}/UnitTests")

tudat_add_test(
TARGET test_AerodynamicMomentAndAerodynamicForce
SOURCES "${AERO_TEST_DIR}/unitTestAerodynamicMomentAndAerodynamicForce.cpp"
LINK_LIBRARIES ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_AerodynamicsNamespace
SOURCES "${AERO_TEST_DIR}/unitTestAerodynamicsNamespace.cpp"
LINK_LIBRARIES tudat_aerodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_AerodynamicCoefficientGenerator
SOURCES "${AERO_TEST_DIR}/unitTestCoefficientGenerator.cpp"
LINK_LIBRARIES tudat_aerodynamics tudat_geometric_shapes tudat_interpolators tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_ExponentialAtmosphere
SOURCES "${AERO_TEST_DIR}/unitTestExponentialAtmosphere.cpp"
LINK_LIBRARIES tudat_aerodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_CustomConstantTemperatureAtmosphere
SOURCES "${AERO_TEST_DIR}/unitTestCustomConstantTemperatureAtmosphere.cpp"
LINK_LIBRARIES tudat_aerodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_TabulatedAtmosphere
SOURCES "${AERO_TEST_DIR}/unitTestTabulatedAtmosphere.cpp"
LINK_LIBRARIES tudat_aerodynamics
tudat_input_output
tudat_interpolators
tudat_basic_mathematics
tudat_basic_astrodynamics
${Boost_LIBRARIES})

tudat_add_test(
TARGET test_TabulatedAerodynamicCoefficients
SOURCES "${AERO_TEST_DIR}/unitTestTabulatedAerodynamicCoefficients.cpp"
LINK_LIBRARIES ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_HeatTransfer
SOURCES "${AERO_TEST_DIR}/unitTestHeatTransfer.cpp"
LINK_LIBRARIES tudat_aerodynamics
tudat_root_finders
tudat_basic_mathematics
tudat_basic_astrodynamics
${Boost_LIBRARIES})

tudat_add_test(
TARGET test_ControlSurfaceIncrements
SOURCES "${AERO_TEST_DIR}/unitTestControlSurfaceIncrements.cpp"
LINK_LIBRARIES ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_AerodynamicCoefficientsFromFile
SOURCES "${AERO_TEST_DIR}/unitTestAerodynamicCoefficientsFromFile.cpp"
LINK_LIBRARIES ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_WindModel
SOURCES "${AERO_TEST_DIR}/unitTestWindModel.cpp"
LINK_LIBRARIES ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})

if(USE_NRLMSISE00)
add_executable(test_NRLMSISE00Atmosphere "${SRCROOT}${AERODYNAMICSDIR}/UnitTests/unitTestNRLMSISE00Atmosphere.cpp")
setup_custom_test_program(test_NRLMSISE00Atmosphere "${SRCROOT}${AERODYNAMICSDIR}")
target_link_libraries(test_NRLMSISE00Atmosphere tudat_aerodynamics tudat_interpolators tudat_basic_mathematics nrlmsise00 tudat_input_output tudat_basic_astrodynamics ${Boost_LIBRARIES})
tudat_add_test(
TARGET test_NRLMSISE00Atmosphere
SOURCES "${AERO_TEST_DIR}/unitTestNRLMSISE00Atmosphere.cpp"
LINK_LIBRARIES tudat_aerodynamics
tudat_interpolators
tudat_basic_mathematics
nrlmsise00
tudat_input_output
tudat_basic_astrodynamics
${Boost_LIBRARIES})
endif( )
203 changes: 120 additions & 83 deletions Tudat/Astrodynamics/BasicAstrodynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,86 +83,123 @@ set(BASICASTRODYNAMICS_UNITTESTS
"${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestUnifiedStateModelExponentialMapElementConversions.cpp"
)

add_executable(test_AstrodynamicsFunctions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestAstrodynamicsFunctions.cpp")
setup_custom_test_program(test_AstrodynamicsFunctions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_AstrodynamicsFunctions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_OrbitalElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestOrbitalElementConversions.cpp")
setup_custom_test_program(test_OrbitalElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_OrbitalElementConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_PhysicalConstants "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestPhysicalConstants.cpp")
setup_custom_test_program(test_PhysicalConstants "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_PhysicalConstants tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_UnitConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestUnitConversions.cpp")
setup_custom_test_program(test_UnitConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_UnitConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_MeanToEccentricAnomalyConversion "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestConvertMeanAnomalyToEccentricAnomaly.cpp")
setup_custom_test_program(test_MeanToEccentricAnomalyConversion "${SRCRthrustFunctionsOOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_MeanToEccentricAnomalyConversion tudat_basic_astrodynamics tudat_basic_mathematics tudat_root_finders ${Boost_LIBRARIES})

add_executable(test_MeanToHyperbolicEccentricAnomalyConversion "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestConvertMeanAnomalyToHyperbolicEccentricAnomaly.cpp")
setup_custom_test_program(test_MeanToHyperbolicEccentricAnomalyConversion "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_MeanToHyperbolicEccentricAnomalyConversion tudat_basic_astrodynamics tudat_basic_mathematics tudat_root_finders ${Boost_LIBRARIES})

add_executable(test_KeplerPropagator "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestKeplerPropagator.cpp")
setup_custom_test_program(test_KeplerPropagator "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_KeplerPropagator tudat_input_output tudat_gravitation tudat_basic_astrodynamics tudat_basic_mathematics tudat_root_finders ${Boost_LIBRARIES})

add_executable(test_AccelerationModel "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestAccelerationModel.cpp")
setup_custom_test_program(test_AccelerationModel "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_AccelerationModel tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_ClohessyWiltshirePropagator "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestClohessyWiltshirePropagator.cpp")
setup_custom_test_program(test_ClohessyWiltshirePropagator "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_ClohessyWiltshirePropagator tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_MissionGeometry "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestMissionGeometry.cpp")
setup_custom_test_program(test_MissionGeometry "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_MissionGeometry tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_TimeConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestTimeConversions.cpp")
setup_custom_test_program(test_TimeConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_TimeConversions tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_CelestialBodyConstants "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestCelestialBodyConstants.cpp")
setup_custom_test_program(test_CelestialBodyConstants "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_CelestialBodyConstants tudat_basic_astrodynamics ${Boost_LIBRARIES})

add_executable(test_ModifiedEquinoctialElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestModifiedEquinoctialElementConversions.cpp")
setup_custom_test_program(test_ModifiedEquinoctialElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_ModifiedEquinoctialElementConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_GeodeticCoordinateConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestGeodeticCoordinateConversions.cpp")
setup_custom_test_program(test_GeodeticCoordinateConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_GeodeticCoordinateConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_StateElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestStateConversions.cpp")
setup_custom_test_program(test_StateElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_StateElementConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_SphericalOrbitalStateConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestSphericalOrbitStateConversions.cpp")
setup_custom_test_program(test_SphericalOrbitalStateConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_SphericalOrbitalStateConversions tudat_basic_astrodynamics tudat_reference_frames tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_BodyShapeModels "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestBodyShapeModels.cpp")
setup_custom_test_program(test_BodyShapeModels "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_BodyShapeModels tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_UnifiedStateModelQuaternionElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestUnifiedStateModelQuaternionElementConversions.cpp")
setup_custom_test_program(test_UnifiedStateModelQuaternionElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_UnifiedStateModelQuaternionElementConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_UnifiedStateModelMRPElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestUnifiedStateModelMRPElementConversions.cpp")
setup_custom_test_program(test_UnifiedStateModelMRPElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_UnifiedStateModelMRPElementConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_UnifiedStateModelEMElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestUnifiedStateModelEMElementConversions.cpp")
setup_custom_test_program(test_UnifiedStateModelEMElementConversions "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_UnifiedStateModelEMElementConversions tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

add_executable(test_EmpiricalAccelerations "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests/unitTestEmpiricalAcceleration.cpp")
setup_custom_test_program(test_EmpiricalAccelerations "${SRCROOT}${BASICASTRODYNAMICSDIR}")
target_link_libraries(test_EmpiricalAccelerations ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})
set(BASIC_ASTRO_TEST_DIR "${SRCROOT}${BASICASTRODYNAMICSDIR}/UnitTests")

tudat_add_test(
TARGET test_AstrodynamicsFunctions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestAstrodynamicsFunctions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_OrbitalElementConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestOrbitalElementConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_PhysicalConstants
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestPhysicalConstants.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_UnitConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestUnitConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_MeanToEccentricAnomalyConversion
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestConvertMeanAnomalyToEccentricAnomaly.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics
tudat_basic_mathematics
tudat_root_finders
${Boost_LIBRARIES})

tudat_add_test(
TARGET test_MeanToHyperbolicEccentricAnomalyConversion
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestConvertMeanAnomalyToHyperbolicEccentricAnomaly.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics
tudat_basic_mathematics
tudat_root_finders
${Boost_LIBRARIES})

tudat_add_test(
TARGET test_KeplerPropagator
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestKeplerPropagator.cpp"
LINK_LIBRARIES tudat_input_output
tudat_gravitation
tudat_basic_astrodynamics
tudat_basic_mathematics
tudat_root_finders
${Boost_LIBRARIES})

tudat_add_test(
TARGET test_AccelerationModel
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestAccelerationModel.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_ClohessyWiltshirePropagator
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestClohessyWiltshirePropagator.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_MissionGeometry
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestMissionGeometry.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_TimeConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestTimeConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_CelestialBodyConstants
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestCelestialBodyConstants.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_ModifiedEquinoctialElementConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestModifiedEquinoctialElementConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_GeodeticCoordinateConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestGeodeticCoordinateConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_StateElementConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestStateConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_SphericalOrbitalStateConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestSphericalOrbitStateConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics
tudat_reference_frames
tudat_basic_mathematics
${Boost_LIBRARIES})

tudat_add_test(
TARGET test_BodyShapeModels
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestBodyShapeModels.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_UnifiedStateModelQuaternionElementConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestUnifiedStateModelQuaternionElementConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_UnifiedStateModelMRPElementConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestUnifiedStateModelMRPElementConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_UnifiedStateModelEMElementConversions
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestUnifiedStateModelEMElementConversions.cpp"
LINK_LIBRARIES tudat_basic_astrodynamics tudat_basic_mathematics ${Boost_LIBRARIES})

tudat_add_test(
TARGET test_EmpiricalAccelerations
SOURCES "${BASIC_ASTRO_TEST_DIR}/unitTestEmpiricalAcceleration.cpp"
LINK_LIBRARIES ${TUDAT_PROPAGATION_LIBRARIES} ${Boost_LIBRARIES})
Loading