mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
75c1f70f88
commit
3c5a34aa19
14 changed files with 54 additions and 87 deletions
|
@ -21,9 +21,7 @@ set(decoration_plugin_SRCS
|
|||
decorationplugin.cpp
|
||||
decorationoptions.cpp
|
||||
colorhelper.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${decoration_plugin_SRCS})
|
||||
)
|
||||
|
||||
add_library(decorationplugin SHARED ${decoration_plugin_SRCS})
|
||||
target_link_libraries(decorationplugin ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${KDE4_KDEUI_LIBRARY} kdecorations)
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
set(plastik_plugin_SRCS
|
||||
plastikbutton.cpp
|
||||
plastikplugin.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${plastik_plugin_SRCS})
|
||||
)
|
||||
|
||||
add_library(plastikplugin SHARED ${plastik_plugin_SRCS})
|
||||
target_link_libraries(plastikplugin ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${KDE4_KDEUI_LIBRARY} kdecorations)
|
||||
|
|
|
@ -8,9 +8,7 @@ find_package(Homerun REQUIRED)
|
|||
# Source
|
||||
set(helloworld_SRCS
|
||||
helloworld.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${helloworld_SRCS})
|
||||
)
|
||||
|
||||
# Build
|
||||
kde4_add_plugin(homerun_source_helloworld SHARED ${helloworld_SRCS})
|
||||
|
@ -18,7 +16,7 @@ kde4_add_plugin(homerun_source_helloworld SHARED ${helloworld_SRCS})
|
|||
include_directories(
|
||||
${HOMERUN_INCLUDES}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
)
|
||||
|
||||
# The library name must start with "homerun_source_". The
|
||||
# HOMERUN_EXPORT_SOURCE C macro expects this.
|
||||
|
@ -28,7 +26,7 @@ target_link_libraries(homerun_source_helloworld
|
|||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_KDECORE_LIBS}
|
||||
${HOMERUN_LIBRARIES}
|
||||
)
|
||||
)
|
||||
|
||||
# Install
|
||||
install(TARGETS homerun_source_helloworld DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
|
|
|
@ -5,19 +5,17 @@ set(fixes_SRCS
|
|||
dialog.cpp
|
||||
fixesplugin.cpp
|
||||
toolboxtoggle.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${fixes_SRCS})
|
||||
)
|
||||
|
||||
add_library(fixesplugin SHARED ${fixes_SRCS})
|
||||
|
||||
target_link_libraries(fixesplugin
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_PLASMA_LIBS}
|
||||
${KDE4_KIO_LIBS}
|
||||
${KDE4_KFILE_LIBS}
|
||||
)
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_PLASMA_LIBS}
|
||||
${KDE4_KIO_LIBS}
|
||||
${KDE4_KFILE_LIBS}
|
||||
)
|
||||
|
||||
install(TARGETS fixesplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/homerun/fixes)
|
||||
install(DIRECTORY qml/
|
||||
|
@ -25,4 +23,4 @@ install(DIRECTORY qml/
|
|||
PATTERN "*.qml"
|
||||
PATTERN "qmldir"
|
||||
PATTERN "*.js"
|
||||
)
|
||||
)
|
||||
|
|
|
@ -9,17 +9,15 @@ set(kicker_SRCS
|
|||
sourcelistmodel.cpp
|
||||
urlconverter.cpp
|
||||
windowsystem.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${kicker_SRCS})
|
||||
)
|
||||
|
||||
add_library(kickerplugin SHARED ${kicker_SRCS})
|
||||
|
||||
target_link_libraries(kickerplugin
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_PLASMA_LIBS}
|
||||
)
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_PLASMA_LIBS}
|
||||
)
|
||||
|
||||
install(TARGETS kickerplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/homerun/kicker)
|
||||
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/homerun/kicker)
|
||||
|
|
|
@ -23,9 +23,7 @@ set(lib_SRCS
|
|||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${LIBKONQ_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
qt4_automoc(${lib_SRCS})
|
||||
)
|
||||
|
||||
configure_file(libhomerun_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/libhomerun_config.h @ONLY)
|
||||
|
||||
|
@ -33,7 +31,7 @@ add_library(homerun SHARED ${lib_SRCS})
|
|||
set_target_properties(homerun PROPERTIES
|
||||
VERSION ${lib_VERSION}
|
||||
SOVERSION ${lib_VERSION_MAJOR}
|
||||
)
|
||||
)
|
||||
|
||||
target_link_libraries(homerun
|
||||
${QT_QTCORE_LIBRARY}
|
||||
|
@ -42,13 +40,13 @@ target_link_libraries(homerun
|
|||
${KDE4_KDEUI_LIBS}
|
||||
${KDE4_KIO_LIBS}
|
||||
${LIBKONQ_LIBRARY}
|
||||
)
|
||||
)
|
||||
|
||||
# Doxygen
|
||||
configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
|
||||
add_custom_target(dox COMMAND
|
||||
doxygen
|
||||
)
|
||||
)
|
||||
|
||||
# Install
|
||||
## Headers
|
||||
|
|
|
@ -3,9 +3,7 @@ project(recentdocuments)
|
|||
# Source
|
||||
set(recentdocuments_SRCS
|
||||
recentdocuments.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${recentdocuments_SRCS})
|
||||
)
|
||||
|
||||
# Build
|
||||
kde4_add_plugin(homerun_source_recentdocuments SHARED ${recentdocuments_SRCS})
|
||||
|
@ -13,7 +11,7 @@ kde4_add_plugin(homerun_source_recentdocuments SHARED ${recentdocuments_SRCS})
|
|||
include_directories(
|
||||
${lib_SOURCE_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
)
|
||||
|
||||
# The library name must start with "homerun_source_". The
|
||||
# HOMERUN_EXPORT_SOURCE C macro expects this.
|
||||
|
@ -24,7 +22,7 @@ target_link_libraries(homerun_source_recentdocuments
|
|||
${KDE4_KDECORE_LIBS}
|
||||
${KDE4_KFILE_LIBS}
|
||||
homerun
|
||||
)
|
||||
)
|
||||
|
||||
# Install
|
||||
install(TARGETS homerun_source_recentdocuments DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
|
|
|
@ -16,17 +16,13 @@ set(corebindings_SRCS
|
|||
iconitem.cpp
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
${KDECLARATIVE_INCLUDE_DIR}
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
${KDECLARATIVE_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
qt4_automoc(${corebindings_SRCS})
|
||||
|
||||
|
||||
|
||||
add_library(corebindingsplugin SHARED ${corebindings_SRCS})
|
||||
target_link_libraries(corebindingsplugin
|
||||
${KDE4_PLASMA_LIBS}
|
||||
|
|
|
@ -3,16 +3,14 @@ project(dirmodel)
|
|||
set(dirmodel_SRCS
|
||||
dirmodel.cpp
|
||||
dirmodelplugin.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${dirmodel_SRCS})
|
||||
)
|
||||
|
||||
add_library(dirmodelplugin SHARED ${dirmodel_SRCS})
|
||||
target_link_libraries(dirmodelplugin
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_KIO_LIBS}
|
||||
)
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_KIO_LIBS}
|
||||
)
|
||||
|
||||
install(TARGETS dirmodelplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/dirmodel)
|
||||
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/dirmodel)
|
||||
|
|
|
@ -4,16 +4,13 @@ set(graphicslayoutsbindings_SRCS
|
|||
graphicslayoutsbindingsplugin.cpp
|
||||
gridlayout.cpp
|
||||
linearlayout.cpp
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
|
||||
qt4_automoc(${graphicslayoutsbindings_SRCS})
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
|
||||
add_library(graphicslayoutsbindingsplugin SHARED ${graphicslayoutsbindings_SRCS})
|
||||
target_link_libraries(graphicslayoutsbindingsplugin ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTSCRIPT_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY})
|
||||
|
|
|
@ -6,17 +6,15 @@ set(graphicswidgetsbindings_SRCS
|
|||
)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
|
||||
if(QT_QTWEBKIT_FOUND)
|
||||
add_definitions(-DHAVE_QTWEBKIT)
|
||||
endif()
|
||||
|
||||
qt4_automoc(${graphicswidgetsbindings_SRCS})
|
||||
|
||||
add_library(graphicswidgetsbindingsplugin SHARED ${graphicswidgetsbindings_SRCS})
|
||||
target_link_libraries(graphicswidgetsbindingsplugin ${KDE4_PLASMA_LIBS} ${QT_QTSCRIPT_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY})
|
||||
|
||||
|
|
|
@ -3,16 +3,14 @@ project(runnermodel)
|
|||
set(runnermodel_SRCS
|
||||
../core/runnermodel.cpp
|
||||
runnermodelplugin.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${runnermodel_SRCS})
|
||||
)
|
||||
|
||||
add_library(runnermodelplugin SHARED ${runnermodel_SRCS})
|
||||
target_link_libraries(runnermodelplugin
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_PLASMA_LIBS}
|
||||
)
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDECLARATIVE_LIBRARY}
|
||||
${KDE4_PLASMA_LIBS}
|
||||
)
|
||||
|
||||
install(TARGETS runnermodelplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/runnermodel)
|
||||
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/runnermodel)
|
||||
|
|
|
@ -10,16 +10,13 @@ set(plasmacomponents_SRCS
|
|||
qmenuitem.cpp
|
||||
units.cpp
|
||||
../core/declarativeitemcontainer.cpp
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
|
||||
qt4_automoc(${plasmacomponents_SRCS})
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
)
|
||||
|
||||
add_library(plasmacomponentsplugin SHARED ${plasmacomponents_SRCS})
|
||||
target_link_libraries(plasmacomponentsplugin
|
||||
|
|
|
@ -4,10 +4,7 @@ set(plasmaextracomponents_SRCS
|
|||
appbackgroundprovider.cpp
|
||||
plasmaextracomponentsplugin.cpp
|
||||
fallbackcomponent.cpp
|
||||
)
|
||||
|
||||
qt4_automoc(${plasmaextracomponents_SRCS})
|
||||
|
||||
)
|
||||
|
||||
add_library(plasmaextracomponentsplugin SHARED ${plasmaextracomponents_SRCS})
|
||||
target_link_libraries(plasmaextracomponentsplugin ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY}
|
||||
|
|
Loading…
Add table
Reference in a new issue