KSplash engine Moodin - splash screen engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ############################################
  2. # #
  3. # Improvements and feedbacks are welcome #
  4. # #
  5. # This file is released under GPL >= 3 #
  6. # #
  7. ############################################
  8. cmake_minimum_required( VERSION 2.8 )
  9. #### general package setup
  10. project( ksplash-engine-moodin )
  11. set( VERSION R14.1.0 )
  12. #### include essential cmake modules
  13. include( FindPkgConfig )
  14. include( CheckFunctionExists )
  15. include( CheckIncludeFile )
  16. include( CheckLibraryExists )
  17. include( CheckCSourceCompiles )
  18. include( CheckCXXSourceCompiles )
  19. #### include our cmake modules
  20. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  21. include( TDEMacros )
  22. ##### setup install paths
  23. include( TDESetupPaths )
  24. tde_setup_paths( )
  25. ##### optional stuff
  26. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  27. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  28. ##### user requested modules
  29. option( BUILD_ALL "Build all" ON )
  30. ##### configure checks
  31. include( ConfigureChecks.cmake )
  32. ###### global compiler settings
  33. add_definitions( -DHAVE_CONFIG_H )
  34. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  35. set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
  36. set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
  37. ##### directories
  38. add_subdirectory( src )
  39. ##### write configure files
  40. configure_file( config.h.cmake config.h @ONLY )