Created
July 5, 2017 10:45
-
-
Save Kishy-nivas/0b2d53ea94ba5316375c8eab5ce63e2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set project name | |
project (SampleProject) | |
# Define target name | |
set (TARGET_NAME SampleProject) | |
###################################### | |
# Set CMake minimum version and CMake policy required by Urho3D-CMake-common module | |
if (WIN32) | |
cmake_minimum_required (VERSION 3.2.3) # Going forward all platforms will use this as minimum version | |
else () | |
cmake_minimum_required (VERSION 2.8.6) | |
endif () | |
if (COMMAND cmake_policy) | |
cmake_policy (SET CMP0003 NEW) | |
if (CMAKE_VERSION VERSION_GREATER 2.8.12 OR CMAKE_VERSION VERSION_EQUAL 2.8.12) | |
# INTERFACE_LINK_LIBRARIES defines the link interface | |
cmake_policy (SET CMP0022 NEW) | |
endif () | |
if (CMAKE_VERSION VERSION_GREATER 3.0.0 OR CMAKE_VERSION VERSION_EQUAL 3.0.0) | |
# Disallow use of the LOCATION target property - so we set to OLD as we still need it | |
cmake_policy (SET CMP0026 OLD) | |
# MACOSX_RPATH is enabled by default | |
cmake_policy (SET CMP0042 NEW) | |
endif () | |
endif () | |
# Set CMake modules search path | |
set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) | |
# Include Urho3D Cmake common module | |
include (Urho3D-CMake-common) | |
# Define source files | |
define_source_files () | |
# Setup target with resource copying | |
setup_main_executable () | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment