forked from seandepagnier/rtlsdr_pi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (33 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
42
43
##---------------------------------------------------------------------------
## Author: Sean D'Epagnier
## Copyright:
## License: GPLv3+
##---------------------------------------------------------------------------
# define minimum cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)
PROJECT(rtlsdr_pi)
SET(PACKAGE_NAME rtlsdr_pi)
SET(CPACK_PACKAGE_CONTACT "Sean D'Epagnier ")
MESSAGE (STATUS "*** Building ${PACKAGE_NAME} ***")
SET(VERSION_MAJOR "0")
SET(VERSION_MINOR "14")
INCLUDE("cmake/PluginConfigure.cmake")
SET(SRC_RTLSDR
src/rtlsdr_pi.cpp
src/rtlsdrDialog.cpp
src/rtlsdrPrefs.cpp
src/rtlsdrUI.cpp
src/icons.cpp
)
ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_RTLSDR})
INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/src/libaudiofile)
INCLUDE("cmake/PluginInstall.cmake")
# note, we don't need to include some dll files if they are already included
# with a mingw opencpn, for now, copy them anyway (makes installer large)
IF(WIN32)
IF(EXISTS ${CMAKE_SOURCE_DIR}/buildwin/bin)
INSTALL(DIRECTORY buildwin/bin DESTINATION "${INSTALL_DIRECTORY}")
ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/buildwin/bin)
ENDIF(WIN32)
INCLUDE("cmake/PluginLocalization.cmake")
INCLUDE("cmake/PluginPackage.cmake")