diff options
Diffstat (limited to 'comms/svxlink/files/patch-src_CMakeLists.txt')
-rw-r--r-- | comms/svxlink/files/patch-src_CMakeLists.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/comms/svxlink/files/patch-src_CMakeLists.txt b/comms/svxlink/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..2fb8088f45aa --- /dev/null +++ b/comms/svxlink/files/patch-src_CMakeLists.txt @@ -0,0 +1,52 @@ +--- src/CMakeLists.txt.orig 2014-08-02 12:45:56.000000000 -0700 ++++ src/CMakeLists.txt 2015-01-05 21:58:48.000000000 -0800 +@@ -37,6 +37,7 @@ + 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 @@ + 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) +@@ -83,6 +78,15 @@ + set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include) + endif(NOT DEFINED INCLUDE_INSTALL_DIR) + ++# Set up include directories ++include_directories( ++ ${PROJECT_INCLUDE_DIR} ++ ${CMAKE_BINARY_DIR} ++if(QT_ONLY) ++ ${INCLUDE_INSTALL_DIR}/svxlink ++endif(QT_ONLY) ++) ++ + # Where to install libraries + if(NOT DEFINED LIB_INSTALL_DIR) + set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) +@@ -312,10 +316,12 @@ + + # Add directories to build + add_subdirectory(async) ++if(NOT QT_ONLY) + add_subdirectory(misc) + add_subdirectory(echolib) + add_subdirectory(locationinfo) + add_subdirectory(svxlink) ++endif(NOT QT_ONLY) + if(USE_QT) + add_subdirectory(qtel) + endif(USE_QT) |