-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
27 lines (21 loc) · 984 Bytes
/
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
################################################################################
#
################################################################################
set(pluginName CrackGenerator)
set(SOURCES plugin_main.cpp
crack_generator.cpp)
################################################################################
# The code below doesn't have to be changed (usually)
################################################################################
cmake_minimum_required(VERSION 2.6)
project(UG_PLUGIN_${pluginName})
# include the definitions and dependencies for ug-plugins.
include(${UG_ROOT_CMAKE_PATH}/ug_plugin_includes.cmake)
if(buildEmbeddedPlugins)
# add the sources to ug4's sources
EXPORTSOURCES(${CMAKE_CURRENT_SOURCE_DIR} ${SOURCES})
else(buildEmbeddedPlugins)
# create a shared library from the sources and link it against ug4.
add_library(${pluginName} SHARED ${SOURCES})
target_link_libraries (${pluginName} ug4)
endif(buildEmbeddedPlugins)