CMakeLists.txt 949 B

12345678910111213141516171819
  1. cmake_minimum_required(VERSION 2.8)
  2. project (WorldServer)
  3. file(GLOB WORLD_SRCS "*.cpp" "*.h" "*/*.cpp" "*/*.h")
  4. file(GLOB COMMON_SRCS "../common/*.cpp" "../common/*.h")
  5. file(GLOB LUA_SRCS "../LUA/*.c" "../LUA/*.h")
  6. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
  7. find_package(MySQL)
  8. find_package(Threads)
  9. find_package(ZLIB)
  10. add_definitions(-DEQ2 -DWORLD)
  11. add_executable(eq2world ${WORLD_SRCS} ${COMMON_SRCS} ${LUA_SRCS})
  12. set(RECAST_LIBRARIES -L${CMAKE_SOURCE_DIR}/EQ2/source/depends/recastnavigation/RecastDemo/Build/gmake/lib/Debug -lDebugUtils -lDetour -lDetourCrowd -lDetourTileCache -lRecast -lboost_system -lboost_filesystem -lboost_iostreams -lboost_regex)
  13. target_include_directories(eq2world PUBLIC ${MySQL_INCLUDE_DIRS} ../common/ ../depends/recastnavigation/Detour/Include ../depends/)
  14. target_link_libraries(eq2world PUBLIC ${MySQL_LIBRARIES} ${ZLIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${RECAST_LIBRARIES})