KHDAPSMonitor – monitor for laptops that support the IBM Hard Drive Active Protection System
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.
 
 

67 lines
1.5 KiB

  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. #################################################
  9. cmake_minimum_required( VERSION 2.8 )
  10. ##### general package setup #####################
  11. project( khdapsmonitor )
  12. set( PACKAGE kdebase )
  13. set( VERSION "3.5.13" )
  14. ##### include essential cmake modules ###########
  15. include( FindPkgConfig )
  16. include( CheckIncludeFile )
  17. include( CheckCSourceRuns )
  18. include( CheckCXXSourceCompiles )
  19. include( CheckLibraryExists )
  20. include( CheckFunctionExists )
  21. include( CheckStructHasMember )
  22. ##### include our cmake modules #################
  23. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  24. include( TDEMacros )
  25. ##### setup install paths #######################
  26. include( TDESetupPaths )
  27. tde_setup_paths( )
  28. find_package( TQt )
  29. find_package( TDE )
  30. ##### set PKG_CONFIG_PATH #######################
  31. set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:$ENV{PKG_CONFIG_PATH}:${LIB_INSTALL_DIR}/pkgconfig" )
  32. ##### configure checks ##########################
  33. ###### global compiler settings #################
  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. ##### kdebase directories #######################
  38. add_subdirectory( src )
  39. ##### write configure files #####################
  40. configure_file( config.h.cmake config.h @ONLY )