TDE games
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.
 
 
 
 
 
 

106 lines
2.7 KiB

  1. ###########################################
  2. # #
  3. # (C) 2016 Alexander Golubev #
  4. # fatzer2 (AT) gmail.com #
  5. # #
  6. # Improvements and feedback are welcome #
  7. # #
  8. # This file is released under GPL >= 2 #
  9. # #
  10. ###########################################
  11. # required stuff
  12. find_package( TQt )
  13. find_package( TDE )
  14. tde_setup_architecture_flags( )
  15. include(TestBigEndian)
  16. test_big_endian(WORDS_BIGENDIAN)
  17. tde_setup_largefiles( )
  18. ##### check for gcc visibility support
  19. if( WITH_GCC_VISIBILITY )
  20. tde_setup_gcc_visibility( )
  21. endif( WITH_GCC_VISIBILITY )
  22. #### check for headers
  23. check_include_file( "stropts.h" HAVE_STROPTS_H )
  24. check_include_file( "sys/filio.h" HAVE_SYS_FILIO_H )
  25. check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
  26. check_include_file( "sysent.h" HAVE_SYSENT_H )
  27. check_symbol_exists( usleep "unistd.h" HAVE_USLEEP )
  28. check_symbol_exists( strlcpy "string.h" HAVE_USLEEP )
  29. # NOTE: Borrowed from tdelibs
  30. # FIXME I'm not sure if test TIME_WITH_SYS_TIME are correct
  31. check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
  32. check_include_file( "time.h" HAVE_TIME_H )
  33. if( HAVE_SYS_TIME_H AND HAVE_TIME_H )
  34. set( TIME_WITH_SYS_TIME 1 )
  35. endif()
  36. # check for arts
  37. if( WITH_ARTS )
  38. pkg_search_module( ARTS arts )
  39. if( ARTS_FOUND )
  40. set( HAVE_ARTS 1 )
  41. else()
  42. tde_message_fatal( "aRts is requested, but was not found on your system" )
  43. endif()
  44. else( WITH_ARTS )
  45. if (BUILD_KASTEROIDS OR BUILD_KOLF)
  46. tde_message_fatal( "aRts support is disabled, but it is required to build kasteroids and kolf" )
  47. endif()
  48. endif( WITH_ARTS )
  49. ##### Import libtdegames
  50. ##### All these games require libtdegames
  51. if( BUILD_ATLANTIK OR
  52. BUILD_KASTEROIDS OR
  53. BUILD_KATOMIC OR
  54. BUILD_KBACKGAMMON OR
  55. BUILD_KBATTLESHIP OR
  56. BUILD_KBLACKBOX OR
  57. BUILD_KBOUNCE OR
  58. BUILD_KENOLABA OR
  59. BUILD_KFOULEGGS OR
  60. BUILD_KGOLDRUNNER OR
  61. BUILD_KJUMPINGCUBE OR
  62. BUILD_KLICKETY OR
  63. BUILD_KLINES OR
  64. BUILD_KMAHJONGG OR
  65. BUILD_KMINES OR
  66. BUILD_KNETWALK OR
  67. BUILD_KOLF OR
  68. BUILD_KONQUEST OR
  69. BUILD_KPAT OR
  70. BUILD_KPOKER OR
  71. BUILD_KREVERSI OR
  72. BUILD_KSAME OR
  73. BUILD_KSHISEN OR
  74. BUILD_KSIRTET OR
  75. BUILD_KSMILETRIS OR
  76. BUILD_KSNAKE OR
  77. BUILD_KSOKOBAN OR
  78. BUILD_KSPACEDUEL OR
  79. BUILD_KTRON OR
  80. BUILD_KTUBERLING OR
  81. BUILD_LSKAT OR
  82. BUILD_TWIN4 )
  83. tde_import ( libtdegames )
  84. endif()