Verified Commit 639a3670 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Build the shared migrator code as a static library

parent 52113e2f
include_directories(
${kdepim-runtime_SOURCE_DIR}/migration
${kdepim-runtime_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/migration
${CMAKE_SOURCE_DIR}
)
add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_migration_agent\")
kde_enable_exceptions()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()
set(migrationagent_SRCS
migrationagent.cpp
......
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
set( MIGRATION_AKONADI_SHARED_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/kmigratorbase.cpp
${CMAKE_CURRENT_SOURCE_DIR}/infodialog.cpp
${CMAKE_CURRENT_SOURCE_DIR}/entitytreecreatejob.cpp
${CMAKE_CURRENT_SOURCE_DIR}/migratorbase.cpp
set(migrationshared_SRCS
kmigratorbase.cpp
infodialog.cpp
entitytreecreatejob.cpp
migratorbase.cpp
)
ecm_qt_declare_logging_category(migrationshared_SRCS
HEADER migration_debug.h
IDENTIFIER MIGRATION_LOG
CATEGORY_NAME org.kde.pim.migration
DESCRIPTION "migration (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
add_library(migrationshared STATIC ${migrationshared_SRCS})
target_link_libraries(migrationshared
KF5::AkonadiCore
KF5::ConfigCore
KF5::I18n
Qt5::Widgets
)
add_subdirectory( gid )
add_subdirectory(gid)
set(gid_SRCS
gidmigrator.cpp
gidmigrationjob.cpp
${MIGRATION_AKONADI_SHARED_SOURCES}
)
ecm_qt_declare_logging_category(gid_SRCS HEADER migration_debug.h IDENTIFIER MIGRATION_LOG CATEGORY_NAME org.kde.pim.migration
DESCRIPTION "migration (kdepim-runtime)"
EXPORT KDEPIMRUNTIME
)
)
add_library(gidmigration STATIC ${gid_SRCS})
target_link_libraries(gidmigration
KF5::AkonadiCore
KF5::Mime
KF5::ConfigCore
migrationshared
KF5::I18n
Qt5::Core
Qt5::Widgets
KF5::WidgetsAddons
)
)
add_executable(gidmigrator main.cpp)
target_link_libraries(gidmigrator
......
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