[kdegraphics] added cmake support for kgamma, kiconedit, and kmrml

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230898 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 5c3f3c34c2
commit 96411d66c8

@ -60,7 +60,10 @@ option( BUILD_KDVI "Build kdvi" ${BUILD_ALL} )
option( BUILD_KFAX "Build kfax" ${BUILD_ALL} ) option( BUILD_KFAX "Build kfax" ${BUILD_ALL} )
option( BUILD_KFAXVIEW "Build kfaxview" ${BUILD_ALL} ) option( BUILD_KFAXVIEW "Build kfaxview" ${BUILD_ALL} )
option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} ) option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} )
option( BUILD_KGAMMA "Build kgamma" ${BUILD_ALL} )
option( BUILD_KGHOSTVIEW "Build kghostview" ${BUILD_ALL} ) option( BUILD_KGHOSTVIEW "Build kghostview" ${BUILD_ALL} )
option( BUILD_KICONEDIT "Build kiconedit" ${BUILD_ALL} )
option( BUILD_KMRML "Build kmrml" ${BUILD_ALL} )
option( BUILD_KVIEW "Build kview" ${BUILD_ALL} ) option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
option( BUILD_KRULER "Build kruler" ${BUILD_ALL} ) option( BUILD_KRULER "Build kruler" ${BUILD_ALL} )
option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} ) option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} )
@ -97,8 +100,11 @@ tde_conditional_add_subdirectory( BUILD_KDVI kdvi )
tde_conditional_add_subdirectory( BUILD_KFAX kfax ) tde_conditional_add_subdirectory( BUILD_KFAX kfax )
tde_conditional_add_subdirectory( BUILD_KFAXVIEW kfaxview ) tde_conditional_add_subdirectory( BUILD_KFAXVIEW kfaxview )
tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins ) tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins )
tde_conditional_add_subdirectory( BUILD_KVIEW kview ) tde_conditional_add_subdirectory( BUILD_KGAMMA kgamma )
tde_conditional_add_subdirectory( BUILD_KGHOSTVIEW kghostview ) tde_conditional_add_subdirectory( BUILD_KGHOSTVIEW kghostview )
tde_conditional_add_subdirectory( BUILD_KICONEDIT kiconedit )
tde_conditional_add_subdirectory( BUILD_KMRML kmrml )
tde_conditional_add_subdirectory( BUILD_KVIEW kview )
tde_conditional_add_subdirectory( BUILD_KRULER kruler ) tde_conditional_add_subdirectory( BUILD_KRULER kruler )
tde_conditional_add_subdirectory( BUILD_KPDF kpdf ) tde_conditional_add_subdirectory( BUILD_KPDF kpdf )
tde_conditional_add_subdirectory( BUILD_KSVG ksvg ) tde_conditional_add_subdirectory( BUILD_KSVG ksvg )

@ -34,3 +34,7 @@
#define HAS_MBSTATE 1 #define HAS_MBSTATE 1
#endif #endif
#endif #endif
// kmrml
#cmakedefine HAVE_STDLIB_H 1
#cmakedefine HAVE_UNISTD_H 1

@ -0,0 +1,15 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include( ConfigureChecks.cmake )
add_subdirectory( kcmkgamma )
add_subdirectory( xf86gammacfg )

@ -0,0 +1,22 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include( CheckIncludeFileCXX )
pkg_search_module( XXF86VM xxf86vm )
if( NOT XXF86VM_FOUND )
tde_message_fatal( "xxf86vm is required, but was not found on your system" )
endif( )
tde_save( CMAKE_REQUIRED_INCLUDES )
set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} )
check_include_file_cxx( sstream HAVE_SSTREAM )
tde_restore( CMAKE_REQUIRED_INCLUDES )

@ -0,0 +1,43 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( pics )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
#### other data #################################
install( FILES kgamma.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
#### kcmkgamma (module) #########################
if( HAVE_SSTREAM )
set_source_files_properties( xvidextwrap.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_SSTREAM" )
endif( )
tde_add_kpart( kcm_kgamma AUTOMOC
SOURCES
xf86configpath.cpp xvidextwrap.cpp
displaynumber.cpp gammactrl.cpp kgamma.cpp
LINK kparts-shared ${XXF86VM_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,18 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_install_icons( kgamma )
install( FILES
background.png cmyscale.png darkgrey.png greyscale.png
lightgrey.png midgrey.png rgbscale.png
DESTINATION ${DATA_INSTALL_DIR}/kgamma/pics
)

@ -0,0 +1,27 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
)
#### xf86gammacfg (executable) ##################
if( HAVE_SSTREAM )
set_source_files_properties( xf86gammacfg.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_SSTREAM" )
endif( )
tde_add_executable( xf86gammacfg
SOURCES xf86gammacfg.cpp
DESTINATION ${BIN_INSTALL_DIR}
)

@ -0,0 +1,42 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory ( pics )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
#### other data #################################
install( FILES kiconedit.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kiconeditui.rc DESTINATION ${DATA_INSTALL_DIR}/kiconedit )
#### kiconedit (executable) #####################
tde_add_executable( kiconedit AUTOMOC
SOURCES
utils.cpp main.cpp kiconedit.cpp kicongrid.cpp
kiconcolors.cpp kcolorgrid.cpp palettetoolbar.cpp
kicon.cpp kresize.cpp knew.cpp properties.cpp
kiconeditslots.cpp kiconconfig.cpp
LINK kio-shared kdeprint-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -0,0 +1,15 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( icons )
add_subdirectory( toolbar )
tde_install_icons( kiconedit )

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES source.png standard.png compressed.png DESTINATION ${DATA_INSTALL_DIR}/kiconedit/pics )

@ -0,0 +1,20 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
fileclose.png circle.png filledcircle.png line.png
paintbrush-cursor.xpm airbrush-cursor.xpm ellipse.png
filledellipse.png rectangle.png filledrectangle.png areaselect.png
selectrect.png selectcircle.png fill-cursor.xpm grid.png pointer.png
aim.png aim-cursor.xpm window_new.png grayscale.png kdepalette.png
transform.png eraser-cursor.xpm colorpicker-cursor.xpm
DESTINATION ${DATA_INSTALL_DIR}/kiconedit/pics
)

@ -0,0 +1,14 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include( ConfigureChecks.cmake )
add_subdirectory ( kmrml )

@ -0,0 +1,13 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
check_include_file( stdlib.h HAVE_STDLIB_H )
check_include_file( unistd.h HAVE_UNISTD_H )

@ -0,0 +1,62 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( lib )
add_subdirectory( kcontrol )
add_subdirectory( server )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/lib
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
#### other data #################################
install( FILES mrml.protocol mrml_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES mrml.desktop DESTINATION ${MIME_INSTALL_DIR}/text )
install( FILES mrml-servicemenu.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
#### kio_mrml (module) ##########################
tde_add_kpart( kio_mrml AUTOMOC
SOURCES mrml.cpp
LINK kmrmlstuff-static kio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### libkmrmlpart (module) #######################
tde_add_kpart( libkmrmlpart AUTOMOC
SOURCES
mrml_part.cpp mrml_view.cpp loader.cpp mrml_elements.cpp
mrml_creator.cpp browser.cpp algorithmdialog.cpp collectioncombo.cpp
algorithmcombo.cpp propertysheet.cpp
LINK kmrmlstuff-static kparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### mrmlsearch (kdeinit) ######################
tde_add_kdeinit_executable( mrmlsearch AUTOMOC
SOURCES mrmlsearch.cpp
LINK kmrmlstuff-static kdecore-shared
)

@ -0,0 +1,38 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../lib
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
#### other data #################################
INSTALL( FILES kcmkmrml.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
#### kcm_kmrml (module) ###########################
tde_add_kpart( kcm_kmrml AUTOMOC
SOURCES
kcmkmrml.cpp mainpage.cpp indexer.cpp
serverconfigwidget.ui indexcleaner.cpp
LINK
kmrmlstuff-static kparts-shared kio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,26 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
#### kcmkgamma (static) #########################
tde_add_library( kmrmlstuff STATIC_PIC AUTOMOC
SOURCES
kmrml_config.cpp mrml_shared.cpp
mrml_utils.cpp watcher_stub.cpp
)

@ -0,0 +1,35 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/lib
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
#### other data #################################
INSTALL( FILES daemonwatcher.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
#### kded_daemonwatcher (module) ################
tde_add_kpart( kded_daemonwatcher AUTOMOC
SOURCES watcher.cpp watcher.skel
LINK kmrmlstuff-static kparts-shared kio-shared kdeinit_kded-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
Loading…
Cancel
Save