Commit 9eeaa4f4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Generate a private lib

parent c66ec781
......@@ -32,6 +32,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMAddTests)
include(ECMQtDeclareLoggingCategory)
include(GenerateExportHeader)
add_definitions(-DTRANSLATION_DOMAIN="kdebugsettings")
add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
......@@ -39,6 +40,10 @@ add_definitions(-DQT_NO_FOREACH)
configure_file(config-kdebugsettings.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kdebugsettings.h)
set(KDEBUGSETTINGS_LIB_VERSION "${KDE_APPLICATIONS_VERSION}")
set(KDEBUGSETTINGS_LIB_SOVERSION "5")
add_subdirectory( src )
if (BUILD_TESTING)
add_subdirectory( autotests )
......
include_directories(${CMAKE_BINARY_DIR})
set(kdebugsettingsprivate_LIB_SRCS
)
add_library(kdebugsettingsprivate ${kdebugsettingsprivate_LIB_SRCS})
generate_export_header(kdebugsettingsprivate BASE_NAME kdebugsettingsprivate)
target_link_libraries(kdebugsettingsprivate
Qt5::Core
)
set_target_properties(kdebugsettingsprivate
PROPERTIES OUTPUT_NAME kdebugsettingsprivate VERSION ${KDEBUGSETTINGS_LIB_VERSION} SOVERSION ${KDEBUGSETTINGS_LIB_SOVERSION}
)
install(TARGETS kdebugsettingsprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
set(kdebugsettings_SRCS
main.cpp
kdebugsettingsdialog.cpp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment