-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (35 loc) · 1.17 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
# create basic mpt resources
cmake_minimum_required(VERSION 2.6)
project(mptbase)
# non-optional basic library
set(components core)
# conditional libraries to build
option(MPT_WITH_LOADER "create MPT loader library" ON)
if (MPT_WITH_LOADER)
list(APPEND components loader)
endif (MPT_WITH_LOADER)
option(MPT_WITH_IO "create MPT I/O extension library" ON)
if (MPT_WITH_IO)
list(APPEND components io)
endif (MPT_WITH_IO)
option(MPT_WITH_PLOT "create MPT plotting extension library" ON)
if (MPT_WITH_PLOT)
list(APPEND components plot)
endif (MPT_WITH_PLOT)
option(MPT_WITH_CXX "create MPT C++ library" ON)
if (MPT_WITH_CXX)
list(APPEND components cxx)
endif(MPT_WITH_CXX)
list(APPEND CMAKE_PREFIX_PATH ".")
find_package(Mpt REQUIRED COMPONENTS ${components})
install(EXPORT mpt-targets DESTINATION share/mpt)
enable_testing()
add_subdirectory(examples)
set(CPACK_PACKAGE_NAME "mpt-base")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Message Passing/Processing Toolkit")
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Marc Becker") #required
INCLUDE(CPack)