Mozilla plugin that launches Kaffeine
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.
 
 
 
 
 

70 lines
1.5 KiB

  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( kaffeine-mozilla )
  11. set( VERSION R14.1.0 )
  12. #### include essential cmake modules
  13. include( FindPkgConfig )
  14. include( CheckFunctionExists )
  15. include( CheckSymbolExists )
  16. include( CheckIncludeFile )
  17. include( CheckLibraryExists )
  18. include( CheckCSourceCompiles )
  19. include( CheckCXXSourceCompiles )
  20. #### include our cmake modules
  21. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  22. include( TDEMacros )
  23. ##### setup install paths
  24. include( TDESetupPaths )
  25. tde_setup_paths( )
  26. ##### optional stuff
  27. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  28. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  29. ##### configure checks
  30. include( ConfigureChecks.cmake )
  31. ###### global compiler settings
  32. add_definitions( -DHAVE_CONFIG_H )
  33. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  34. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  35. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  36. ##### directories
  37. add_subdirectory( src )
  38. ##### write configure files
  39. configure_file( config.h.cmake config.h @ONLY )