Browse Source

Initial-cmake-conversion

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/1/head
Alexander Golubev 6 years ago
committed by Slávek Banko
parent
commit
9ffcfe47af
  1. 84
      CMakeLists.txt
  2. 48
      ConfigureChecks.cmake
  3. 3
      config.h.cmake
  4. 3
      doc/CMakeLists.txt
  5. 6
      doc/da/CMakeLists.txt
  6. 6
      doc/es/CMakeLists.txt
  7. 6
      doc/et/CMakeLists.txt
  8. 3
      doc/filelight/CMakeLists.txt
  9. 6
      doc/it/CMakeLists.txt
  10. 6
      doc/pt/CMakeLists.txt
  11. 6
      doc/ru/CMakeLists.txt
  12. 6
      doc/sv/CMakeLists.txt
  13. 22
      misc/CMakeLists.txt
  14. 3
      po/CMakeLists.txt
  15. 3
      po/az/CMakeLists.txt
  16. 3
      po/bg/CMakeLists.txt
  17. 3
      po/br/CMakeLists.txt
  18. 3
      po/ca/CMakeLists.txt
  19. 3
      po/cs/CMakeLists.txt
  20. 3
      po/cy/CMakeLists.txt
  21. 3
      po/da/CMakeLists.txt
  22. 3
      po/de/CMakeLists.txt
  23. 3
      po/el/CMakeLists.txt
  24. 3
      po/en_GB/CMakeLists.txt
  25. 3
      po/es/CMakeLists.txt
  26. 3
      po/et/CMakeLists.txt
  27. 3
      po/fr/CMakeLists.txt
  28. 3
      po/ga/CMakeLists.txt
  29. 3
      po/gl/CMakeLists.txt
  30. 3
      po/is/CMakeLists.txt
  31. 3
      po/it/CMakeLists.txt
  32. 3
      po/ja/CMakeLists.txt
  33. 3
      po/ka/CMakeLists.txt
  34. 3
      po/lt/CMakeLists.txt
  35. 3
      po/nb/CMakeLists.txt
  36. 3
      po/nl/CMakeLists.txt
  37. 3
      po/pl/CMakeLists.txt
  38. 3
      po/pt/CMakeLists.txt
  39. 3
      po/pt_BR/CMakeLists.txt
  40. 3
      po/ro/CMakeLists.txt
  41. 3
      po/ru/CMakeLists.txt
  42. 3
      po/rw/CMakeLists.txt
  43. 3
      po/sr/CMakeLists.txt
  44. 3
      po/sr@Latn/CMakeLists.txt
  45. 3
      po/sv/CMakeLists.txt
  46. 3
      po/ta/CMakeLists.txt
  47. 3
      po/tr/CMakeLists.txt
  48. 3
      po/uk/CMakeLists.txt
  49. 4
      src/CMakeLists.txt
  50. 32
      src/app/CMakeLists.txt
  51. 36
      src/part/CMakeLists.txt
  52. 31
      src/part/radialMap/CMakeLists.txt

84
CMakeLists.txt

@ -0,0 +1,84 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.8 )
##### general package setup #####################
project( filelight )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckLibraryExists )
# @Add othere required cmake modules here@
#
# EXAMPLE:
# include( CheckTypeSize )
# include( CheckCSourceCompiles )
# include( CheckCXXSourceCompiles )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff ############################
# EXAMPLE:
# option( WITH_XSCREENSAVER "Enable xscreensaver support" ${WITH_ALL_OPTIONS} )
##### user requested modules ####################
option( BUILD_ALL "Build all" OFF )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
)
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" )
##### filelight directories #####################
add_subdirectory( src )
add_subdirectory( misc )
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

48
ConfigureChecks.cmake

@ -0,0 +1,48 @@
#################################################
#
# (C) 2012 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# required stuff
tde_setup_architecture_flags( )
find_package( TQt )
find_package( TDE )
##### check for gcc visibility support #########
# FIXME
# This should check for [T]Qt3 visibility support
if( WITH_GCC_VISIBILITY )
if( NOT UNIX )
tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
endif( NOT UNIX )
set( __KDE_HAVE_GCC_VISIBILITY 1 )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
endif( WITH_GCC_VISIBILITY )
# gettext
if( BUILD_TRANSLATIONS )
include( FindGettext )
if( GETTEXT_FOUND )
set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
CACHE FILEPATH "path to msgfmt executable" )
endif( GETTEXT_FOUND )
if( NOT MSGFMT_EXECUTABLE )
tde_message_fatal( "msgfmt is required but was not found on your system." )
endif( NOT MSGFMT_EXECUTABLE )
endif( BUILD_TRANSLATIONS )
# Check for mntent.h
check_include_file( "mntent.h" HAVE_MNTENT_H )

3
config.h.cmake

@ -0,0 +1,3 @@
#cmakedefine VERSION "@VERSION@"
#cmakedefine HAVE_MNTENT_H

3
doc/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_auto_add_subdirectories( )

6
doc/da/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG da
)

6
doc/es/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG es
)

6
doc/et/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG et
)

3
doc/filelight/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook( DESTINATION filelight )

6
doc/it/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG it
)

6
doc/pt/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG pt
)

6
doc/ru/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG ru
)

6
doc/sv/CMakeLists.txt

@ -0,0 +1,6 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_handbook(
DESTINATION filelight
LANG sv
)

22
misc/CMakeLists.txt

@ -0,0 +1,22 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_install_icons( )
##### other data ################################
install( FILES filelight_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install( FILES filelight.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
install( FILES filelightrc
DESTINATION ${CONFIG_INSTALL_DIR}
)
install( FILES filelight_partui.rc filelightui.rc
DESTINATION ${DATA_INSTALL_DIR}/filelight
)

3
po/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_auto_add_subdirectories( )

3
po/az/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG az )

3
po/bg/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG bg )

3
po/br/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG br )

3
po/ca/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ca )

3
po/cs/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG cs )

3
po/cy/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG cy )

3
po/da/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG da )

3
po/de/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG de )

3
po/el/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG el )

3
po/en_GB/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG en_GB )

3
po/es/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG es )

3
po/et/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG et )

3
po/fr/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG fr )

3
po/ga/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ga )

3
po/gl/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG gl )

3
po/is/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG is )

3
po/it/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG it )

3
po/ja/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ja )

3
po/ka/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ka )

3
po/lt/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG lt )

3
po/nb/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG nb )

3
po/nl/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG nl )

3
po/pl/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG pl )

3
po/pt/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG pt )

3
po/pt_BR/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG pt_BR )

3
po/ro/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ro )

3
po/ru/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ru )

3
po/rw/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG rw )

3
po/sr/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG sr )

3
po/sr@Latn/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG sr@Latn )

3
po/sv/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG sv )

3
po/ta/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG ta )

3
po/tr/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG tr )

3
po/uk/CMakeLists.txt

@ -0,0 +1,3 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
tde_create_translation( LANG uk )

4
src/CMakeLists.txt

@ -0,0 +1,4 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_subdirectory( app )
add_subdirectory( part )

32
src/app/CMakeLists.txt

@ -0,0 +1,32 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### filelight (executable) ####################
tde_add_executable( filelight AUTOMOC
SOURCES historyAction.cpp mainWindow.cpp main.cpp
LINK tdeui-shared tdeparts-shared
DESTINATION ${BIN_INSTALL_DIR}
)

36
src/part/CMakeLists.txt

@ -0,0 +1,36 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( radialMap )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### libfilelight (kpart) ######################
tde_add_kpart( libfilelight AUTOMOC
SOURCES dialog.ui part.cpp scan.cpp progressBox.cpp Config.cpp
settingsDialog.cpp fileTree.cpp localLister.cpp remoteLister.cpp
summaryWidget.cpp
LINK radialmap-static tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

31
src/part/radialMap/CMakeLists.txt

@ -0,0 +1,31 @@
#################################################
#
# (C) 2016 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/part
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### radialmap (static) ########################
tde_add_library( radialmap STATIC_PIC AUTOMOC
SOURCES widget.cpp builder.cpp map.cpp widgetEvents.cpp labels.cpp
segmentTip.cpp
)
Loading…
Cancel
Save