forked from thelfer/MFrontGallery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
37 lines (32 loc) · 1.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
project(MFrontGallery)
set(PACKAGE mfront-gallery)
cmake_minimum_required(VERSION 3.12.0)
include(cmake/modules/mfm.cmake)
# testing
set(CTEST_CONFIGURATION_TYPE "${JOB_BUILD_CONFIGURATION}")
# (must be placed *before* any add_subdirectory, cmake bug ?)
enable_testing()
if(CMAKE_CONFIGURATION_TYPES)
add_custom_target(check COMMAND
${CMAKE_CTEST_COMMAND} -T test -C $<CONFIGURATION>)
else(CMAKE_CONFIGURATION_TYPES)
add_custom_target(check COMMAND
${CMAKE_CTEST_COMMAND} -T test )
endif(CMAKE_CONFIGURATION_TYPES)
add_subdirectory(generic-behaviours)
add_subdirectory(materials)
add_subdirectory(mfront-book-examples)
add_subdirectory(unit-tests/mfront-wrappers)
# add_subdirectory(unit-tests/behaviours-without-temperature)
if(TFEL_MADNEX_SUPPORT)
add_subdirectory(unit-tests/madnex/material-properties-1)
add_subdirectory(unit-tests/madnex/material-properties-2)
add_subdirectory(unit-tests/madnex/behaviours-1)
add_subdirectory(unit-tests/madnex/behaviours-2)
add_subdirectory(unit-tests/madnex/models-1)
add_subdirectory(unit-tests/madnex/models-2)
endif(TFEL_MADNEX_SUPPORT)
add_subdirectory(unit-tests/tfel-check)
if(enable-website)
add_subdirectory(docs/web)
endif(enable-website)