-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (31 loc) · 1.24 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
cmake_minimum_required(VERSION 3.5)
set(pluginName XBraidPoroelasticity)
project(UG_PLUGIN_${pluginName})
set(UG4_XBraidPoroelasticity_plugin_VERSION_MAJOR 0.1)
set(UG4_XBraidPoroelasticity_plugin_VERSION_MINOR 0.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS_INIT} -fPIC")
#set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS_INIT} -Wpedantic")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(SOURCES
src/xbraidporoelasticity_plugin.cpp
src/braid_biot_estimator.h
src/braid_biot_control.h
src/braid_biot_precomputed.h
src/biot_error_data.h
src/biot_braid_displacement_norm.h
)
if(NOT UG_ROOT_CMAKE_PATH)
set(UG_ROOT_CMAKE_PATH /storage/pro/ug/ugcore/cmake)
endif(NOT UG_ROOT_CMAKE_PATH)
include(${UG_ROOT_CMAKE_PATH}/ug_plugin_includes.cmake)
if (buildEmbeddedPlugins)
EXPORTSOURCES(${CMAKE_CURRENT_SOURCE_DIR} ${SOURCES})
else (buildEmbeddedPlugins)
add_library(${pluginName} SHARED ${SOURCES})
link_directories(${UG_ROOT_PATH}/bin/plugins)
target_link_libraries(${pluginName} PUBLIC ug4)
target_link_libraries(${pluginName} PUBLIC Poroelasticity)
target_link_libraries(${pluginName} PUBLIC XBraidForUG4)
endif (buildEmbeddedPlugins)