CMakeLists.txt 597 B

123456789101112131415161718192021222324252627282930313233
  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(gameplay-samples)
  20. # gameplay samples
  21. add_subdirectory(gameplay-tests)
  22. # gameplay encoder (See gameplay/bin)
  23. #add_subdirectory(gameplay-encoder)