CMakeLists.txt 852 B

1234567891011121314151617181920212223242526272829303132333435
  1. cmake_minimum_required(VERSION 2.8)
  2. project(crown)
  3. set (CROWN_VERSION_MAJOR 0)
  4. set (CROWN_VERSION_MINOR 1)
  5. set (CROWN_VERSION_MICRO 10)
  6. option (CROWN_BUILD_SAMPLES "Whether to build the samples" ON)
  7. option (CROWN_BUILD_TOOLS "Whether to build the tools" ON)
  8. option (CROWN_BUILD_TESTS "Whether to build unit tests" ON)
  9. # always debug mode for now
  10. set (CROWN_DEBUG 1)
  11. # detect operating system
  12. if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  13. set (LINUX 1)
  14. endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  15. if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
  16. set(WINDOWS 1)
  17. endif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
  18. # always build the engine
  19. add_subdirectory(engine)
  20. # select optional projects to build
  21. if (CROWN_BUILD_TOOLS)
  22. #add_subdirectory(tools)
  23. endif (CROWN_BUILD_TOOLS)
  24. if (CROWN_BUILD_SAMPLES)
  25. add_subdirectory(samples)
  26. endif (CROWN_BUILD_SAMPLES)