blob: 0df1355a8e48d777e12484a94d3567e03488b5c4 [file] [log] [blame]
Thomas Psotaab779072019-09-04 15:49:39 +02001###############################################
2### Tests ###
3###############################################
4
5cmake_minimum_required(VERSION 2.8.4)
Tobias Klausmann98460252020-01-22 11:46:45 +01006
7# Allow versioning the subproject
8if(POLICY CMP0048)
9 cmake_policy(SET CMP0048 NEW)
10endif(POLICY CMP0048)
11
12project(tests
13 VERSION ${BASYX_PACKAGE_VERSION_MAJOR}.${BASYX_PACKAGE_VERSION_MINOR}.${BASYX_PACKAGE_VERSION_PATCH}
14)
Thomas Psotaab779072019-09-04 15:49:39 +020015
Thomas Psotafe76c052019-09-05 16:53:32 +020016### tests::main ###
Thomas Psotaab779072019-09-04 15:49:39 +020017
Thomas Psotab2e5cfe2019-09-16 16:48:57 +020018add_library(tests_main support/main.cpp)
19target_link_libraries(tests_main gtest)
20add_library(tests::main ALIAS tests_main)
21diagnostics_print(tests_main)
Thomas Psotaab779072019-09-04 15:49:39 +020022
Thomas Psotafe76c052019-09-05 16:53:32 +020023### UnitTests ###
Thomas Psotaab779072019-09-04 15:49:39 +020024
Thomas Psota17c2db42019-12-04 23:15:14 +010025#add_subdirectory(regression/aas)
Thomas Psotaab779072019-09-04 15:49:39 +020026add_subdirectory(regression/util)
27add_subdirectory(regression/vab)
Thomas Psotabfdeedc2020-02-27 17:26:16 +010028add_subdirectory(regression/aas)
29add_subdirectory(regression/submodel)
Thomas Psotaab779072019-09-04 15:49:39 +020030
Thomas Psotafe76c052019-09-05 16:53:32 +020031### Support ###
32
33add_subdirectory(support)
34