forked from seandepagnier/climatology_pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
72 lines (57 loc) · 1.95 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
66
67
68
69
70
71
72
##---------------------------------------------------------------------------
## Author: Sean D'Epagnier
## Copyright:
## License: GPLv3+
##---------------------------------------------------------------------------
# define minimum cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
cmake_policy(SET CMP0012 NEW)
PROJECT(climatology_pi)
SET(PACKAGE_NAME climatology_pi)
SET(VERBOSE_NAME Climatology)
SET(TITLE_NAME CLIMATOLOGY)
SET(CPACK_PACKAGE_CONTACT "Sean D'Epagnier ")
SET(CMAKE_MACOSX_RPATH "ON")
SET(CMAKE_CXX_STANDARD 11)
INCLUDE("cmake/PluginConfigure.cmake")
SET(SRC_CLIMATOLOGY
src/ClimatologyOverlayFactory.cpp
src/climatology_pi.cpp
src/ClimatologyUI.cpp
src/ClimatologyDialog.cpp
src/ClimatologyConfigDialog.cpp
src/zuFile.cpp
src/IsoBarMap.cpp
src/icons.cpp
)
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_CLIMATOLOGY})
IF(NOT UNIX)
SET(SRC_BZIP
src/bzip2/bzlib.c
src/bzip2/blocksort.c
src/bzip2/compress.c
src/bzip2/crctable.c
src/bzip2/decompress.c
src/bzip2/huffman.c
src/bzip2/randtable.c
)
ADD_LIBRARY(LIB_BZIP_CL STATIC ${SRC_BZIP})
TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} LIB_BZIP_CL )
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/buildwin/include)
INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/src/bzip2)
ENDIF(NOT UNIX)
IF(WIN32)
IF(MSVC)
SET(OPENCPN_IMPORT_LIB "../../${CMAKE_CFG_INTDIR}/${PARENT}")
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/buildwin/include)
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} "${CMAKE_SOURCE_DIR}/buildwin/zlib1.lib")
ELSE()
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} "-lz")
ENDIF()
ENDIF(WIN32)
INCLUDE("cmake/PluginJSON.cmake")
INCLUDE("cmake/PluginXML.cmake")
INCLUDE("cmake/PluginGL.cmake")
INCLUDE("cmake/PluginInstall.cmake")
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")