Advertisement
vivienneanthony

tried to add the library at the end

Nov 6th, 2015
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.58 KB | None
  1. # Set project name
  2. project (HangarsServer)
  3.  
  4. # Define target name
  5. set (TARGET_NAME HangarsServer)
  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. # Add directory as include path
  38. include_directories ("${CMAKE_CURRENT_SOURCE_DIR}")
  39.  
  40. # Define files
  41. file(GLOB_RECURSE HANGARSSERVER_INCLUDE_FILES *.h)
  42. file(GLOB_RECURSE HANGERSSERVER_SOURCE_FILES *.cpp)
  43.  
  44. # Define source files
  45. define_source_files (GLOB_CPP_PATTERNS *.cpp ${GLOB_OBJC_PATTERN} EXTRA_H_FILES RECURSE)
  46.  
  47. # Setup target with resource copying
  48. setup_main_executable ()
  49.  
  50. #attempt to link
  51. target_link_libraries(HangarsServer Urho3D EngineStd)
Advertisement
RAW Paste Data Copied
Advertisement