Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/weboob/CMakeLists.txt
1 | # Use KDE compiler settings to enable C++11 | 1 | # Use KDE compiler settings to enable C++11 | ||
---|---|---|---|---|---|
2 | # include(KDECompilerSettings NO_POLICY_SCOPE) | 2 | # include(KDECompilerSettings NO_POLICY_SCOPE) | ||
3 | 3 | | |||
4 | # patch the version with the version defined in the build system | 4 | # patch the version with the version defined in the build system | ||
5 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/weboob.json.in ${CMAKE_CURRENT_BINARY_DIR}/weboob.json @ONLY) | 5 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/weboob.json.in ${CMAKE_CURRENT_BINARY_DIR}/weboob.json @ONLY) | ||
6 | 6 | | |||
7 | add_subdirectory( dialogs ) | 7 | add_subdirectory( dialogs ) | ||
8 | add_subdirectory( interface ) | 8 | add_subdirectory( interface ) | ||
9 | 9 | | |||
10 | ########### next target ############### | 10 | ########### next target ############### | ||
11 | 11 | | |||
12 | set(weboob_PART_SRCS | 12 | set(weboob_PART_SRCS | ||
13 | weboob.cpp | 13 | weboob.cpp | ||
14 | ) | 14 | ) | ||
15 | 15 | | |||
16 | add_library(weboob MODULE ${weboob_PART_SRCS}) | 16 | kcoreaddons_add_plugin(weboob | ||
17 | SOURCES ${weboob_PART_SRCS} | ||||
18 | JSON "${CMAKE_CURRENT_BINARY_DIR}/weboob.json" | ||||
19 | INSTALL_NAMESPACE "kmymoney") | ||||
20 | | ||||
21 | #kcoreaddons_add_plugin sets LIBRARY_OUTPUT_DIRECTORY to ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${INSTALL_NAMESPACE} | ||||
22 | set_target_properties(weboob | ||||
23 | PROPERTIES | ||||
24 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}") | ||||
17 | 25 | | |||
18 | target_link_libraries( | 26 | target_link_libraries( | ||
19 | weboob | 27 | weboob | ||
20 | PRIVATE | 28 | PRIVATE | ||
21 | weboob_interface | 29 | weboob_interface | ||
22 | weboob_dialogs | 30 | weboob_dialogs | ||
23 | kmm_mymoney | 31 | kmm_mymoney | ||
24 | kmm_widgets | 32 | kmm_widgets | ||
25 | kmm_plugin | 33 | kmm_plugin | ||
26 | Qt5::Concurrent | 34 | Qt5::Concurrent | ||
27 | ) | 35 | ) | ||
28 | 36 | | |||
29 | ########### install files ############### | 37 | ########### install files ############### | ||
30 | 38 | | |||
31 | install(FILES weboob.rc | 39 | install(FILES weboob.rc | ||
32 | DESTINATION "${KXMLGUI_INSTALL_DIR}/weboob") | 40 | DESTINATION "${KXMLGUI_INSTALL_DIR}/weboob") | ||
33 | | ||||
34 | install(TARGETS weboob | | |||
35 | DESTINATION "${KDE_INSTALL_PLUGINDIR}/kmymoney/") | | |||
36 | |