forked from sofa-framework/SofaMJEDFEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (39 loc) · 1.67 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.12)
project(SofaMJEDFEM VERSION 1.0 LANGUAGES CXX)
find_package(SofaFramework REQUIRED)
find_package(SofaBaseTopology REQUIRED)
find_package(SofaBaseMechanics REQUIRED)
find_package(Sofa.GL REQUIRED)
set(SOFAMJEDFEM_SRC_DIR src/SofaMJEDFEM)
set(HEADER_FILES
${SOFAMJEDFEM_SRC_DIR}/config.h.in
${SOFAMJEDFEM_SRC_DIR}/MJEDTetrahedralForceField.h
${SOFAMJEDFEM_SRC_DIR}/MJEDTetrahedralForceField.inl
${SOFAMJEDFEM_SRC_DIR}/fem/material/NeoHookeanIsotropicMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/HyperelasticMaterialMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/BoyceAndArrudaMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/STVenantKirchhoffMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/NeoHookeanMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/MooneyRivlinMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/VerondaWestmanMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/CostaMJED.h
${SOFAMJEDFEM_SRC_DIR}/fem/material/OgdenMJED.h
)
set(SOURCE_FILES
${SOFAMJEDFEM_SRC_DIR}/initSofaMJEDFEM.cpp
${SOFAMJEDFEM_SRC_DIR}/MJEDTetrahedralForceField.cpp
)
set(README_FILE "README.md")
# Create the plugin library
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${README_FILE})
# Link the plugin library to its dependency
target_link_libraries(${PROJECT_NAME} SofaBaseTopology SofaBaseMechanics Sofa.GL)
# Create package Config, Version & Target files
sofa_create_package_with_targets(
PACKAGE_NAME ${PROJECT_NAME}
PACKAGE_VERSION ${PROJECT_VERSION}
TARGETS ${PROJECT_NAME} AUTO_SET_TARGET_PROPERTIES
INCLUDE_SOURCE_DIR "src"
INCLUDE_INSTALL_DIR ${PROJECT_NAME}
RELOCATABLE "plugins"
)