parent
400e114c31
commit
37c0b00fbf
@ -0,0 +1,73 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2011 Timothy Pearson
|
||||
# kb9vqf (AT) pearsoncomputing.net
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
cmake_minimum_required( VERSION 2.8 )
|
||||
|
||||
|
||||
##### general package setup #####################
|
||||
|
||||
project( kdocker )
|
||||
|
||||
|
||||
##### include essential cmake modules ###########
|
||||
|
||||
include( CheckCXXSourceCompiles )
|
||||
include( CheckFunctionExists )
|
||||
include( CheckIncludeFileCXX )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckStructHasMember )
|
||||
include( CheckSymbolExists )
|
||||
include( CheckTypeSize )
|
||||
include( FindPkgConfig )
|
||||
|
||||
|
||||
##### include our cmake modules #################
|
||||
|
||||
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### setup install paths #######################
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### user requested modules ####################
|
||||
|
||||
option( BUILD_ALL "Build all" OFF )
|
||||
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||
|
||||
|
||||
##### configure checks ##########################
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
|
||||
###### global compiler settings #################
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||
|
||||
|
||||
##### source directories ########################
|
||||
|
||||
add_subdirectory( src )
|
||||
add_subdirectory( icons )
|
||||
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||
|
||||
|
||||
##### other data ################################
|
||||
|
||||
INSTALL(FILES kdocker.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2011 Timothy Pearson
|
||||
# kb9vqf (AT) pearsoncomputing.net
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
|
||||
find_program( MSGFMT_EXECUTABLE msgfmt )
|
||||
if( NOT MSGFMT_EXECUTABLE )
|
||||
tde_message_fatal( "msgfmt program is required, but was not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
# common required stuff
|
||||
find_package( TQt )
|
||||
find_package( TDE )
|
||||
|
||||
# check required packages
|
||||
pkg_search_module( XMU xmu )
|
||||
if( NOT XMU_FOUND )
|
||||
tde_message_fatal( "xmu is required, but was not found on your system" )
|
||||
endif( )
|
||||
|
||||
pkg_search_module( XPM xpm )
|
||||
if( NOT XPM_FOUND )
|
||||
tde_message_fatal( "xpm is required, but was not found on your system" )
|
||||
endif( )
|
||||
|
@ -0,0 +1,12 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2011 Timothy Pearson
|
||||
# kb9vqf (AT) pearsoncomputing.net
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kdocker/icons )
|
@ -0,0 +1,17 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2011 Timothy Pearson
|
||||
# kb9vqf (AT) pearsoncomputing.net
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} kdocker.po )
|
||||
|
||||
foreach( _po ${po_files} )
|
||||
get_filename_component( _lang ${_po} PATH )
|
||||
tde_create_translation( FILES ${_po} LANG ${_lang} )
|
||||
endforeach( )
|
@ -0,0 +1,44 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2011 Timothy Pearson
|
||||
# kb9vqf (AT) pearsoncomputing.net
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
|
||||
include_directories(
|
||||
${TQT_INCLUDE_DIRS}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_BINARY_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${XMU_INCLUDEDIR}
|
||||
${XPM_INCLUDEDIR}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### kdocker ###################################
|
||||
|
||||
tde_add_executable( kdocker AUTOMOC
|
||||
SOURCES
|
||||
customtraylabel.cpp
|
||||
kdocker.cpp
|
||||
main.cpp
|
||||
qtraylabel.cpp
|
||||
trace.cpp
|
||||
traylabelmgr.cpp
|
||||
util.cpp
|
||||
LINK
|
||||
kdecore-shared kdeui-shared DCOP-shared
|
||||
${XMU_LIBRARIES} ${XPM_LIBRARIES}
|
||||
DESTINATION
|
||||
${BIN_INSTALL_DIR}
|
||||
)
|
||||
|
Loading…
Reference in new issue