forked from metin2/server
CMake build system updates, the docker image automatically compiles quests at build
This commit is contained in:
@ -15,8 +15,8 @@ include_directories("include")
|
||||
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
||||
|
||||
# Find dependencies
|
||||
find_package(libmysql REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${MYSQL_LIBRARIES})
|
||||
find_package(unofficial-libmysql REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE unofficial::libmysql::libmysql)
|
||||
|
||||
find_package(Boost REQUIRED)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
|
@ -13,6 +13,7 @@ include_directories(src)
|
||||
find_package(Boost REQUIRED)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${sources})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "qc")
|
||||
|
||||
# Link dependencies if found
|
||||
if (Boost_FOUND)
|
||||
|
Reference in New Issue
Block a user