CMakeLists.txt 462 B

1234567891011121314151617181920212223242526272829
  1. cmake_minimum_required(VERSION 2.6)
  2. project(GamePlay)
  3. set(GAMEPLAY_VERSION 1.6.0)
  4. set(CMAKE_C_COMPILER_INIT g++)
  5. # debug
  6. message( "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" )
  7. if ( "${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG" )
  8. add_definitions(-D_DEBUG)
  9. endif()
  10. # architecture
  11. if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
  12. set(ARCH_DIR "x64")
  13. else()
  14. set(ARCH_DIR "x86")
  15. endif()
  16. # gameplay library
  17. add_subdirectory(gameplay)
  18. # gameplay samples
  19. add_subdirectory(samples)