Migrate main cmake file

pull/1/head
Timothy Pearson 13 years ago
parent 0c4bc5daa3
commit a8435f7b72

@ -13,9 +13,8 @@ include_directories(
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kio/kio
) )
link_directories( link_directories(
@ -23,15 +22,7 @@ link_directories(
) )
##### other data ################################ ##### kbfxcommon #################################
install( FILES locate.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES locater.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES rlocate.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES locate.desktop DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders )
##### libkbfxcommonsrc ##############################
set( target kbfxcommon ) set( target kbfxcommon )

@ -1,62 +1,47 @@
SET(libkbfxspinxsrc #################################################
kbfxbutton.cpp #
kbfxplasmacanvasabstractitem.cpp # (C) 2011 Timothy Pearson
kbfxplasmacanvasgroup.cpp # kb9vqf (AT) pearsoncomputing.net
kbfxplasmacanvasgroupview.cpp #
kbfxplasmacanvasitem.cpp # Improvements and feedback are welcome
kbfxplasmacanvasitem_events.cpp #
kbfxplasmacanvasitemwrapper.cpp # This file is released under GPL >= 2
kbfxplasmacanvasstack.cpp #
kbfxplasmacanvasview.cpp #################################################
kbfxplasmaindexitem.cpp
kbfxplasmaindexview.cpp include_directories(
kbfxspinx.cpp ${TQT_INCLUDE_DIRS}
kbfxspinxmenu.cpp ${TDE_INCLUDE_DIR}
kbfxspinxpopup.cpp ${CMAKE_BINARY_DIR}
kbfxspinxscrollbar.cpp ${CMAKE_CURRENT_BINARY_DIR}
kbfxspinxtoolbar.cpp ${CMAKE_CURRENT_SOURCE_DIR}
kbfxspinxtoolbutton.cpp )
kbfxspinxtop.cpp
kbfxspinxview.cpp link_directories(
kbfxtooltip.cpp ${TQT_LIBRARY_DIRS}
) )
IF (NOT USE_KDE4)
KDE3_ADD_DCOP_SKELS(libkbfxspinxsrc kbfxspinx.h) ##### kbfxspinx ##################################
KDE3_AUTOMOC(${libkbfxspinxsrc})
set( target kbfxspinx )
ADD_LIBRARY(kbfxspinx MODULE ${libkbfxspinxsrc})
SET_TARGET_PROPERTIES(kbfxspinx set( ${target}_SRCS
PROPERTIES kbfxbutton.cpp kbfxplasmacanvasabstractitem.cpp kbfxplasmacanvasgroup.cpp
COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) kbfxplasmacanvasgroupview.cpp kbfxplasmacanvasitem.cpp kbfxplasmacanvasitem_events.cpp
# SET_TARGET_PROPERTIES(kbfxspinx PROPERTIES kbfxplasmacanvasitemwrapper.cpp kbfxplasmacanvasstack.cpp kbfxplasmacanvasview.cpp
# SOVERSION ${LIB_MAJOR} kbfxplasmaindexitem.cpp kbfxplasmaindexview.cpp kbfxspinx.cpp kbfxspinxmenu.cpp
# VERSION ${APPLICATION_VERSION}) kbfxspinxpopup.cpp kbfxspinxscrollbar.cpp kbfxspinxtoolbar.cpp kbfxspinxtoolbutton.cpp
TARGET_LINK_LIBRARIES(kbfxspinx kbfxspinxtop.cpp kbfxspinxview.cpp kbfxtooltip.cpp
kbfxdata )
kbfxcommon
${QT_AND_TDECORE_LIBS} tde_add_kpart( ${target} AUTOMOC
${KDE3_UI_LIBRARY} SOURCES ${${target}_SRCS}
) LINK tdecore-shared tdeui-shared kbfxspinx kbfxdata kbfxcommon
DESTINATION ${PLUGIN_INSTALL_DIR}
KDE3_INSTALL_LIBTOOL_FILE(kbfxspinx ${PLUGIN_INSTALL_DIR}) )
ELSE (NOT USE_KDE4)
# TODO: Have to rewrite it for DBUS.
# Rewrite the DCOP interface (in src/) to DBUS for KDE4 support. ##### desktop files ###############################
# Should be done in a way to preserve KDE3 compatibility!
KDE4_ADD_DCOP_SKELS(libkbfxspinxsrc kbfxspinx.h)
KDE4_AUTOMOC(${libkbfxspinxsrc})
KDE4_ADD_LIBRARY(kbfxspinx MODULE ${libkbfxspinxsrc})
TARGET_LINK_LIBRARIES(kbfxspinx
kbfxdata
kbfxcommon
${KDE4_TDECORE_LIBS}
${KDE4_TDEUI_LIBS}
)
KDE4_INSTALL_LIBTOOL_FILE(kbfxspinx ${PLUGIN_INSTALL_DIR})
ENDIF (NOT USE_KDE4)
INSTALL(TARGETS kbfxspinx DESTINATION ${PLUGIN_INSTALL_DIR})
INSTALL(FILES kbfxspinx.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets) INSTALL(FILES kbfxspinx.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets)

Loading…
Cancel
Save