-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
66 lines (53 loc) · 2.91 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
55
56
57
58
59
60
61
62
63
64
65
# Copyright (c) 2014-2015 The Regents of the University of California.
# All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject
# to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cmake_minimum_required(VERSION 2.8.12)
set(SV_EXTERNALS_VERSION_NUMBER "2019.06" CACHE STRING "SimVascular Externals Release Version")
message(STATUS "1) [CMakeList.txt] SV_EXTERNALS_VERSION_NUMBER ${SV_EXTERNALS_VERSION_NUMBER}")
project(SV_PLUGIN)
set(PLUGIN_NAME org.sv.gui.qt.purkinjenetwork)
set(SV_LIB_MODULE_PURKINJENETWORK_NAME _simvascular_module_purkinjenetwork)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
find_package(SimVascular REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SimVascular_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SimVascular_CXX_FLAGS}")
#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
#set(CMAKE_SKIP_BUILD_RPATH 1)
#set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_INSTALL_RPATH "")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
include_directories(${SimVascular_INCLUDE_DIRS})
message(STATUS "[CMakeLists] SimVascular_USE_EXTERNALS_FILE '${SimVascular_USE_EXTERNALS_FILE}'")
#include(SimVascularExternalsVersions)
include(${SimVascular_USE_EXTERNALS_FILE})
include_directories(
"${CMAKE_SOURCE_DIR}/Code/Source/sv4gui/Modules/PurkinjeNetwork"
"${CMAKE_BINARY_DIR}/Code/Source/sv4gui/Modules/PurkinjeNetwork"
"${CMAKE_SOURCE_DIR}/Code/Source/sv4gui/Plugins/${PLUGIN_NAME}"
"${CMAKE_BINARY_DIR}/Code/Source/sv4gui/Plugins/${PLUGIN_NAME}"
)
add_subdirectory("${CMAKE_SOURCE_DIR}/Code/Source/sv4gui/Modules/PurkinjeNetwork")
add_subdirectory("${CMAKE_SOURCE_DIR}/Code/Source/sv4gui/Plugins/${PLUGIN_NAME}")
add_subdirectory("${CMAKE_SOURCE_DIR}/Distribution")