-
Notifications
You must be signed in to change notification settings - Fork 1
/
FrictionQPotFEMConfig.cmake
89 lines (74 loc) · 2.57 KB
/
FrictionQPotFEMConfig.cmake
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# FrictionQPotFEM cmake module
#
# This module sets the target:
#
# FrictionQPotFEM
#
# In addition, it sets the following variables:
#
# FrictionQPotFEM_FOUND - true if the library is found
# FrictionQPotFEM_VERSION - the library's version
# FrictionQPotFEM_INCLUDE_DIRS - directory containing the library's headers
#
# The following support targets are defined to simplify things:
#
# FrictionQPotFEM::compiler_warnings - enable compiler warnings
# FrictionQPotFEM::assert - enable library assertions
# FrictionQPotFEM::debug - enable all assertions (slow)
include(CMakeFindDependencyMacro)
# Define target "FrictionQPotFEM"
if(NOT TARGET FrictionQPotFEM)
include("${CMAKE_CURRENT_LIST_DIR}/FrictionQPotFEMTargets.cmake")
endif()
# Define "FrictionQPotFEM_INCLUDE_DIRS"
get_target_property(
FrictionQPotFEM_INCLUDE_DIRS
FrictionQPotFEM
INTERFACE_INCLUDE_DIRECTORIES)
# Find dependencies
find_dependency(xtensor)
find_dependency(GooseFEM)
find_dependency(GMatElastoPlasticQPot)
# Define support target "FrictionQPotFEM::compiler_warnings"
if(NOT TARGET FrictionQPotFEM::compiler_warnings)
add_library(FrictionQPotFEM::compiler_warnings INTERFACE IMPORTED)
if(MSVC)
set_property(
TARGET FrictionQPotFEM::compiler_warnings
PROPERTY INTERFACE_COMPILE_OPTIONS
/W4)
else()
set_property(
TARGET FrictionQPotFEM::compiler_warnings
PROPERTY INTERFACE_COMPILE_OPTIONS
-Wall -Wextra -pedantic -Wno-unknown-pragmas)
endif()
endif()
# Define support target "FrictionQPotFEM::warnings"
if(NOT TARGET FrictionQPotFEM::warnings)
add_library(FrictionQPotFEM::warnings INTERFACE IMPORTED)
set_property(
TARGET FrictionQPotFEM::warnings
PROPERTY INTERFACE_COMPILE_DEFINITIONS
FRICTIONQPOTFEM_ENABLE_WARNING_PYTHON)
endif()
# Define support target "FrictionQPotFEM::assert"
if(NOT TARGET FrictionQPotFEM::assert)
add_library(FrictionQPotFEM::assert INTERFACE IMPORTED)
set_property(
TARGET FrictionQPotFEM::assert
PROPERTY INTERFACE_COMPILE_DEFINITIONS
FRICTIONQPOTFEM_ENABLE_ASSERT)
endif()
# Define support target "FrictionQPotFEM::debug"
if(NOT TARGET FrictionQPotFEM::debug)
add_library(FrictionQPotFEM::debug INTERFACE IMPORTED)
set_property(
TARGET FrictionQPotFEM::debug
PROPERTY INTERFACE_COMPILE_DEFINITIONS
XTENSOR_ENABLE_ASSERT
QPOT_ENABLE_ASSERT
GOOSEFEM_ENABLE_ASSERT
GMATELASTOPLASTICQPOT_ENABLE_ASSERT
FRICTIONQPOTFEM_ENABLE_ASSERT)
endif()