Advertisement
vivienneanthony

Put together Engine Std

Nov 5th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.53 KB | None | 0 0
  1. # Set project name
  2. project (HangarsClient)
  3.  
  4. # Define target name
  5. set (TARGET_NAME HangarsClient)
  6.  
  7. # Set minimum version
  8. cmake_minimum_required (VERSION 2.8.6)
  9. if (COMMAND cmake_policy)
  10.     cmake_policy (SET CMP0003 NEW)
  11.     if (CMAKE_VERSION VERSION_GREATER 2.8.12 OR CMAKE_VERSION VERSION_EQUAL 2.8.12)
  12.         # INTERFACE_LINK_LIBRARIES defines the link interface
  13.         cmake_policy (SET CMP0022 NEW)
  14.     endif ()
  15.     if (CMAKE_VERSION VERSION_GREATER 3.0.0 OR CMAKE_VERSION VERSION_EQUAL 3.0.0)
  16.         # Disallow use of the LOCATION target property - therefore we set to OLD as we still need it
  17.         cmake_policy (SET CMP0026 OLD)
  18.         # MACOSX_RPATH is enabled by default
  19.         cmake_policy (SET CMP0042 NEW)
  20.     endif ()
  21. endif ()
  22.  
  23. # Set CMake modules search path
  24. set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules)
  25.  
  26. # Include Urho3D Cmake common module
  27. include (Urho3D-CMake-common)
  28.  
  29. # Find Urho3D library
  30. find_package (Urho3D REQUIRED)
  31. find_package (EngineStd REQUIRED)
  32.  
  33. # Add include directories
  34. include_directories (${URHO3D_INCLUDE_DIRS})
  35. include_directories (${ENGINESTD_INCLUDE_DIRS})
  36.  
  37. # Define files
  38. file(GLOB_RECURSE HANGARSCLIENT_INCLUDE_FILES *.h)
  39. file(GLOB_RECURSE HANGERSCLIENT_SOURCE_FILES *.cpp)
  40.  
  41. # Define source files
  42. define_source_files (HANGERSCLIENT_INCLUDE_FILES HANGERSCLIENT_SOURCE_FILES)
  43.  
  44. # Link each library
  45. target_link_libraries (${EXECUTABLE_NAME} EngineStd)
  46. target_link_libraries (${EXECUTABLE_NAME} Urho3D)
  47.  
  48. # Setup target with resource copying
  49. setup_executable ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement