mirror of https://github.com/mosra/magnum.git
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.
23 lines
475 B
23 lines
475 B
|
16 years ago
|
cmake_minimum_required(VERSION 2.6)
|
||
|
|
project(Magnum)
|
||
|
|
|
||
|
|
option(BUILD_TESTS "Build unit tests (requires Qt4)." OFF)
|
||
|
|
|
||
|
|
if(BUILD_TESTS)
|
||
|
|
find_package(Qt4)
|
||
|
|
|
||
|
|
if(NOT QT4_FOUND)
|
||
|
|
message(WARNING "Qt4 is required for building unit tests. No tests will be build.")
|
||
|
|
set(BUILD_TESTS OFF)
|
||
|
|
else()
|
||
|
|
enable_testing()
|
||
|
|
endif()
|
||
|
|
|
||
|
|
endif()
|
||
|
|
|
||
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Magnum_SOURCE_DIR}/modules/")
|
||
|
|
|
||
|
|
include(MagnumMacros)
|
||
|
|
|
||
|
|
add_subdirectory(src)
|