diff options
Diffstat (limited to 'depends/settings/CMakeLists.txt')
-rw-r--r-- | depends/settings/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/depends/settings/CMakeLists.txt b/depends/settings/CMakeLists.txt index 911b604b..3de1d792 100644 --- a/depends/settings/CMakeLists.txt +++ b/depends/settings/CMakeLists.txt @@ -44,8 +44,13 @@ src/stubkeyring.cpp SET(LIBSETTINGS_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE) include_directories(${LIBSETTINGS_INCLUDE_DIR}) +# Static link! +ADD_DEFINITIONS(-DLIBSETTINGS_STATIC) + add_definitions(-DLIBSETTINGS_LIBRARY) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + add_library(libSettings STATIC ${LIBSETTINGS_SOURCES} ${LIBSETTINGS_HEADERS} ${LIBSETTINGS_HEADERS_PRIVATE}) qt5_use_modules(libSettings Core) target_link_libraries(libSettings) |