1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 23:57:46 +00:00
sapphire/src/dbm/CMakeLists.txt

23 lines
732 B
Text
Raw Normal View History

2018-12-13 12:40:42 +01:00
cmake_minimum_required( VERSION 3.0 )
cmake_policy( SET CMP0015 NEW )
project( dbm )
2018-11-25 16:45:48 +01:00
2018-12-13 12:40:42 +01:00
file( GLOB SERVER_PUBLIC_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*" )
file( GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.c*" )
2018-11-25 16:45:48 +01:00
2018-12-13 12:40:42 +01:00
add_executable( dbm ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES} )
2018-11-25 16:45:48 +01:00
2018-12-13 12:40:42 +01:00
target_include_directories( dbm
2018-11-25 16:45:48 +01:00
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/"
PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/../" )
2018-12-31 17:30:45 +01:00
2018-12-13 12:40:42 +01:00
target_link_libraries( dbm PRIVATE mysqlConnector common xivdat )
2018-11-25 16:45:48 +01:00
if (UNIX)
2018-12-13 12:40:42 +01:00
target_link_libraries( dbm PRIVATE stdc++fs )
2018-11-25 16:45:48 +01:00
else()
2018-12-13 12:40:42 +01:00
target_link_libraries( dbm PRIVATE mysql )
2018-11-25 16:45:48 +01:00
endif()