|
|
|
@ -27,6 +27,20 @@ cmake_minimum_required(VERSION 3.4) |
|
|
|
|
|
|
|
|
|
|
|
project(MagnumBindings CXX) |
|
|
|
project(MagnumBindings CXX) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Don't restrict INTERPROCEDURAL_OPTIMIZATION only for icc on Linux |
|
|
|
|
|
|
|
if(POLICY CMP0069) |
|
|
|
|
|
|
|
cmake_policy(SET CMP0069 NEW) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
# If CMAKE_AUTOMOC is set, all uses of corrade_add_resource() would otherwise |
|
|
|
|
|
|
|
# complain on 3.10 that AUTOMOC is not processing GENERATED files |
|
|
|
|
|
|
|
if(POLICY CMP0071) |
|
|
|
|
|
|
|
cmake_policy(SET CMP0071 NEW) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
# Superprojects can use just set(WITH_BLAH ON) without FORCE CACHE on 3.13+ |
|
|
|
|
|
|
|
if(POLICY CMP0077) |
|
|
|
|
|
|
|
cmake_policy(SET CMP0077 NEW) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# Use folders for nice tree in Visual Studio and XCode |
|
|
|
# Use folders for nice tree in Visual Studio and XCode |
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON) |
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON) |
|
|
|
|
|
|
|
|
|
|
|
|