forked from metin2/server
Removed Boost dependency, changed MySQL library to MariaDB
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
|
||||
project(libgame CXX)
|
||||
|
||||
@ -11,12 +11,11 @@ file(GLOB SOURCES
|
||||
# Include header files
|
||||
include_directories("include")
|
||||
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
# Create shared library
|
||||
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
||||
|
||||
if (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES})
|
||||
endif (Boost_FOUND)
|
||||
# Find and link dependencies
|
||||
|
||||
# spdlog
|
||||
find_package(spdlog CONFIG REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE spdlog::spdlog)
|
||||
|
Reference in New Issue
Block a user