Skip to content
Permalink
Browse files

compile QTSignal statically (fixes #21514)

  • Loading branch information
jef-n committed Mar 9, 2019
1 parent 7cc0528 commit 5d9cbe9aca5275a81ec3e44dd9dce2c8abfcf135
Showing with 4 additions and 16 deletions.
  1. +4 −16 external/qt-unix-signals/CMakeLists.txt
@@ -17,21 +17,16 @@ SET(CMAKE_CXX_STANDARD 11)

option(CMAKE_ENABLE "Enable automatic path configuration" ON)


# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)

UNSET(CMAKE_CXX_VISIBILITY_PRESET)

include_directories(
${Qt5Core_INCLUDE_DIRS})
add_library(QTSignal SHARED
sigwatch.cpp
)
target_link_libraries (QTSignal
${Qt5Core_LIBRARIES}
)
include_directories(${Qt5Core_INCLUDE_DIRS})
add_library(QTSignal STATIC sigwatch.cpp)
target_link_libraries (QTSignal ${Qt5Core_LIBRARIES})

#option(WITH_EXAMPLE "Build example executable" ON)
#if (WITH_EXAMPLE)
@@ -40,10 +35,3 @@ target_link_libraries (QTSignal
# QTSignal
# )
#endif(WITH_EXAMPLE)

INSTALL(TARGETS QTSignal
RUNTIME DESTINATION ${QGIS_BIN_DIR}
LIBRARY DESTINATION ${QGIS_LIB_DIR}
ARCHIVE DESTINATION ${QGIS_LIB_DIR}
FRAMEWORK DESTINATION ${QGIS_FW_SUBDIR}
PUBLIC_HEADER DESTINATION ${QGIS_INCLUDE_DIR})

0 comments on commit 5d9cbe9

Please sign in to comment.
You can’t perform that action at this time.