Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set project name
- project (HangarsClient)
- # Define target name
- set (TARGET_NAME HangarsClient)
- # Set minimum version
- cmake_minimum_required (VERSION 2.8.6)
- 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 - therefore 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)
- # Find Urho3D library
- find_package (Urho3D REQUIRED)
- find_package (EngineStd REQUIRED)
- # Add include directories
- include_directories (${URHO3D_INCLUDE_DIRS})
- include_directories (${ENGINESTD_INCLUDE_DIRS})
- # Define files
- file(GLOB_RECURSE HANGARSCLIENT_INCLUDE_FILES *.h)
- file(GLOB_RECURSE HANGERSCLIENT_SOURCE_FILES *.cpp)
- # Define source files
- define_source_files (HANGERSCLIENT_INCLUDE_FILES HANGERSCLIENT_SOURCE_FILES)
- # Link each library
- target_link_libraries (${EXECUTABLE_NAME} EngineStd)
- target_link_libraries (${EXECUTABLE_NAME} Urho3D)
- # Setup target with resource copying
- setup_executable ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement