The Trinity Qt Interface
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.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. project( tqt )
  12. set( TQT_MAJOR_VERSION 14 )
  13. set( TQT_MINOR_VERSION 0 )
  14. set( TQT_MICRO_VERSION 0 )
  15. set( TQT_VERSION "${TQT_MAJOR_VERSION}.${TQT_MINOR_VERSION}.${TQT_MICRO_VERSION}" )
  16. ##### cmake setup ###############################
  17. cmake_minimum_required( VERSION 2.8 )
  18. include( CheckCXXSourceCompiles )
  19. include( GNUInstallDirs OPTIONAL )
  20. ##### include our cmake modules #################
  21. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  22. include( TDEMacros )
  23. ##### install paths setup #######################
  24. tde_setup_install_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" )
  25. tde_setup_install_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" )
  26. if( CMAKE_INSTALL_LIBDIR )
  27. tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" )
  28. else( )
  29. tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" )
  30. endif( )
  31. tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/tqt" )
  32. tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" )
  33. ##### optional stuff ############################
  34. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  35. option( WITH_QT3 "Build TQt interface based on TQt3" ${WITH_ALL_OPTIONS} )
  36. option( WITH_QT4 "Build TQt interface based on Qt4" OFF )
  37. ##### user requested modules ####################
  38. option( BUILD_ALL "Build all" OFF )
  39. ##### configure checks ##########################
  40. include( ConfigureChecks.cmake )
  41. ##### tqtinterface sources ######################
  42. add_subdirectory( qtinterface )