01f2a3a9f2
enable-final argument (there was not a dependancy between <name>_final.cpp file and moc generated files => moc files were never created) Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules I ported and tested all kde module (without enable-final argument, it compiles fines (test and program)) Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works) Regards svn path=/trunk/KDE/kdebase/workspace/; revision=595039
62 lines
1.3 KiB
CMake
62 lines
1.3 KiB
CMake
|
|
project(kwin)
|
|
|
|
add_subdirectory( lib )
|
|
add_subdirectory( killer )
|
|
add_subdirectory( kcmkwin )
|
|
add_subdirectory( pics )
|
|
add_subdirectory( clients )
|
|
add_subdirectory( data )
|
|
|
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/lib ${CMAKE_CURRENT_SOURCE_DIR}/lib )
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(kwin_KDEINIT_SRCS
|
|
kwinadaptor.cpp
|
|
workspace.cpp
|
|
client.cpp
|
|
placement.cpp
|
|
atoms.cpp
|
|
utils.cpp
|
|
layers.cpp
|
|
main.cpp
|
|
popupinfo.cpp
|
|
tabbox.cpp
|
|
options.cpp
|
|
plugins.cpp
|
|
events.cpp
|
|
killwindow.cpp
|
|
geometrytip.cpp
|
|
sm.cpp
|
|
group.cpp
|
|
bridge.cpp
|
|
manage.cpp
|
|
notifications.cpp
|
|
activation.cpp
|
|
useractions.cpp
|
|
geometry.cpp
|
|
rules.cpp )
|
|
|
|
kde4_automoc(kwin ${kwin_KDEINIT_SRCS})
|
|
|
|
|
|
kde4_add_kdeinit_executable( kwin ${kwin_KDEINIT_SRCS})
|
|
|
|
target_link_libraries(kdeinit_kwin ${KDE4_KDEUI_LIBS} kdecorations ${X11_LIBRARIES} ${QT_QT3SUPPORT_LIBRARY} )
|
|
|
|
install(TARGETS kdeinit_kwin DESTINATION ${LIB_INSTALL_DIR} )
|
|
|
|
target_link_libraries( kwin kdeinit_kwin )
|
|
install(TARGETS kwin DESTINATION ${BIN_INSTALL_DIR})
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES kwin.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
|
|
install( FILES eventsrc DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
|
|
|
|