1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 22:57:45 +00:00
sapphire/src/api/CMakeLists.txt

17 lines
465 B
Text
Raw Normal View History

2018-12-13 12:40:42 +01:00
cmake_minimum_required( VERSION 2.6 )
cmake_policy( SET CMP0015 NEW )
project( Sapphire )
2017-08-08 13:53:47 +02: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*" )
2017-08-08 13:53:47 +02:00
2018-12-13 12:40:42 +01:00
add_executable( api ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES} )
2017-08-08 13:53:47 +02:00
2018-12-13 12:40:42 +01:00
target_link_libraries( api common )
2018-10-26 14:45:10 +02:00
if( UNIX )
2018-12-13 12:40:42 +01:00
target_link_libraries( api mysqlclient stdc++fs )
2018-10-26 19:22:31 +02:00
else()
2018-12-13 12:40:42 +01:00
target_link_libraries( api mysql )
2018-10-26 14:45:10 +02:00
endif()