ports/comms/svxlink/files/patch-src_CMakeLists.txt
Diane Bruce 1dc6a32c86 SvxLink release 19.09.1 -- 01 Sep 2019
@sm0svx sm0svx released this 4 days ago

This release of SvxLink have no single big feature addition but a lot of
smaller ones. Some examples are: AFSK metadata transmission for RF linked
remote receivers, per receiver voter delay adjustment, new module ModuleTrx to
remote control transceivers using DTMF, more flexible announcement
configuration and more.

As usual a number of bugs have been fixed. The full list of changes and more
details can be found in the README for release 19.09. Information on
configuration of new features can be found in the manual pages.

Reported by:	portscout
2019-09-05 23:30:43 +00:00

79 lines
2.6 KiB
Text

--- src/CMakeLists.txt.orig 2019-09-01 20:12:38 UTC
+++ src/CMakeLists.txt
@@ -37,6 +37,7 @@ set(RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
# Optional parts
+option(QT_ONLY "Only Build Qt applications and libs" OFF)
option(USE_QT "Build Qt applications and libs" ON)
option(BUILD_STATIC_LIBS "Build static libraries in addition to dynamic" OFF)
@@ -46,12 +47,6 @@ if(NOT DEFINED INTERNAL_SAMPLE_RATE)
endif(NOT DEFINED INTERNAL_SAMPLE_RATE)
add_definitions(-DINTERNAL_SAMPLE_RATE=${INTERNAL_SAMPLE_RATE})
-# Set up include directories
-include_directories(
- ${PROJECT_INCLUDE_DIR}
- ${CMAKE_BINARY_DIR}
-)
-
# Warnings should be enabled for GCC. Also turning off the NDEBUG flag
# since that remove asserts.
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
@@ -79,7 +74,6 @@ if(NOT CMAKE_BUILD_TYPE)
FORCE)
endif(NOT CMAKE_BUILD_TYPE)
-
##############################################################################
# Install targets properties setup
##############################################################################
@@ -93,6 +87,18 @@ if(NOT DEFINED INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_FULL_INCLUDEDIR})
endif(NOT DEFINED INCLUDE_INSTALL_DIR)
+# Set up include directories
+include_directories(
+ ${PROJECT_INCLUDE_DIR}
+ ${CMAKE_BINARY_DIR}
+if(QT_ONLY)
+ ${CMAKE_SOURCE_DIR}/echolib
+ ${CMAKE_SOURCE_DIR}/async/audio
+ ${CMAKE_SOURCE_DIR}/async/core
+ ${INCLUDE_INSTALL_DIR}/svxlink/svxlink
+endif(QT_ONLY)
+)
+
# Where to install libraries
if(NOT DEFINED LIB_INSTALL_DIR)
#set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
@@ -333,21 +339,23 @@ set(LIBS ${LIBS} ${SIGC2_LIBRARIES})
# Find the chown utility
include(FindCHOWN)
-set(SVXLINK_USER "svxlink" CACHE STRING "Set SvxLink system user")
-set(SVXLINK_GROUP "svxlink" CACHE STRING "Set SvxLink system group")
-message(STATUS "SvxLink user = ${SVXLINK_USER}")
-message(STATUS "SvxLink group = ${SVXLINK_GROUP}")
-
# Add directories to build
add_subdirectory(async)
add_subdirectory(misc)
+if(NOT QT_ONLY)
add_subdirectory(echolib)
add_subdirectory(locationinfo)
add_subdirectory(svxlink)
+endif(NOT QT_ONLY)
if(USE_QT)
add_subdirectory(qtel)
endif(USE_QT)
add_subdirectory(doc)
+
+set(SVXLINK_USER "svxlink" CACHE STRING "Set SvxLink system user")
+set(SVXLINK_GROUP "daemon" CACHE STRING "Set SvxLink system group")
+message(STATUS "SvxLink user = ${SVXLINK_USER}")
+message(STATUS "SvxLink group = ${SVXLINK_GROUP}")
# Experimental CPack package building
set(CPACK_SET_DESTDIR "ON")