| 1234567891011121314151617181920212223242526272829303132333435 |
- cmake_minimum_required(VERSION 2.8)
- project(crown)
- set (CROWN_VERSION_MAJOR 0)
- set (CROWN_VERSION_MINOR 1)
- set (CROWN_VERSION_MICRO 10)
- option (CROWN_BUILD_SAMPLES "Whether to build the samples" ON)
- option (CROWN_BUILD_TOOLS "Whether to build the tools" ON)
- option (CROWN_BUILD_TESTS "Whether to build unit tests" ON)
- # always debug mode for now
- set (CROWN_DEBUG 1)
- # detect operating system
- if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- set (LINUX 1)
- endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
- set(WINDOWS 1)
- endif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
- # always build the engine
- add_subdirectory(engine)
- # select optional projects to build
- if (CROWN_BUILD_TOOLS)
- #add_subdirectory(tools)
- endif (CROWN_BUILD_TOOLS)
- if (CROWN_BUILD_SAMPLES)
- add_subdirectory(samples)
- endif (CROWN_BUILD_SAMPLES)
|