Changeset View
Changeset View
Standalone View
Standalone View
src/libs/store/CMakeLists.txt
1 | if(BUILD_TESTING) | 1 | if(BUILD_TESTING) | ||
---|---|---|---|---|---|
2 | add_subdirectory(tests) | 2 | add_subdirectory(tests) | ||
3 | endif() | 3 | endif() | ||
4 | 4 | | |||
5 | ########### libkostore ############### | 5 | ########### libkostore ############### | ||
6 | 6 | | |||
7 | if( Qca-qt5_FOUND ) | | |||
8 | add_definitions( -DQCA2 ) | | |||
9 | endif() | | |||
10 | | ||||
11 | set(kostore_LIB_SRCS | 7 | set(kostore_LIB_SRCS | ||
12 | KoDirectoryStore.cpp | 8 | KoDirectoryStore.cpp | ||
13 | KoEncryptedStore.cpp | | |||
14 | KoEncryptionChecker.cpp | | |||
15 | KoLZF.cpp | 9 | KoLZF.cpp | ||
16 | KoStore.cpp | 10 | KoStore.cpp | ||
17 | KoStoreDevice.cpp | 11 | KoStoreDevice.cpp | ||
18 | KoTarStore.cpp | 12 | KoTarStore.cpp | ||
19 | KoXmlNS.cpp | 13 | KoXmlNS.cpp | ||
20 | KoXmlReader.cpp | 14 | KoXmlReader.cpp | ||
21 | KoXmlWriter.cpp | 15 | KoXmlWriter.cpp | ||
22 | KoZipStore.cpp | 16 | KoZipStore.cpp | ||
23 | StoreDebug.cpp | 17 | StoreDebug.cpp | ||
24 | KoNetAccess.cpp # temporary while porting | 18 | KoNetAccess.cpp # temporary while porting | ||
25 | ) | 19 | ) | ||
20 | if( Qca-qt5_FOUND ) | ||||
21 | set(kostore_LIB_SRCS ${kostore_LIB_SRCS} | ||||
22 | KoEncryptedStore.cpp | ||||
23 | KoEncryptionChecker.cpp | ||||
24 | ) | ||||
25 | endif() | ||||
26 | 26 | | |||
27 | add_library(planstore SHARED ${kostore_LIB_SRCS}) | 27 | add_library(planstore SHARED ${kostore_LIB_SRCS}) | ||
28 | generate_export_header(planstore BASE_NAME kostore) | 28 | generate_export_header(planstore BASE_NAME kostore) | ||
29 | 29 | | |||
30 | target_link_libraries(planstore | 30 | target_link_libraries(planstore | ||
31 | PUBLIC | 31 | PUBLIC | ||
32 | Qt5::Xml | 32 | Qt5::Xml | ||
33 | Qt5::Core | 33 | Qt5::Core | ||
34 | KF5::KIOCore | 34 | KF5::KIOCore | ||
35 | PRIVATE | 35 | PRIVATE | ||
36 | Qt5::Gui | 36 | Qt5::Gui | ||
37 | KF5::Archive | 37 | KF5::Archive | ||
38 | KF5::Wallet | | |||
39 | KF5::KIOWidgets | 38 | KF5::KIOWidgets | ||
40 | KF5::I18n | 39 | KF5::I18n | ||
41 | ) | 40 | ) | ||
42 | if( Qca-qt5_FOUND ) | 41 | if( Qca-qt5_FOUND ) | ||
43 | target_link_libraries(planstore PRIVATE qca-qt5) | 42 | target_link_libraries(planstore PRIVATE qca-qt5 KF5::Wallet) | ||
44 | endif() | 43 | endif() | ||
45 | 44 | | |||
46 | set_target_properties(planstore PROPERTIES | 45 | set_target_properties(planstore PROPERTIES | ||
47 | VERSION ${GENERIC_PLAN_LIB_VERSION} SOVERSION ${GENERIC_PLAN_LIB_SOVERSION} | 46 | VERSION ${GENERIC_PLAN_LIB_VERSION} SOVERSION ${GENERIC_PLAN_LIB_SOVERSION} | ||
48 | ) | 47 | ) | ||
49 | install(TARGETS planstore ${INSTALL_TARGETS_DEFAULT_ARGS} ) | 48 | install(TARGETS planstore ${INSTALL_TARGETS_DEFAULT_ARGS} ) |