mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
20 lines
623 B
Text
20 lines
623 B
Text
![]() |
cmake_minimum_required(VERSION 3.0.2)
|
||
|
project(Sapphire)
|
||
|
|
||
|
include_directories( "../" )
|
||
|
|
||
|
file( GLOB UTILS_PUBLIC_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*" )
|
||
|
file( GLOB UTILS_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*" )
|
||
|
|
||
|
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
|
||
|
|
||
|
add_library( xivdat ${UTILS_PUBLIC_INCLUDE_FILES} ${UTILS_SOURCE_FILES} )
|
||
|
if (UNIX)
|
||
|
target_link_libraries( xivdat PUBLIC dl )
|
||
|
target_link_libraries( xivdat PUBLIC z )
|
||
|
else()
|
||
|
target_link_libraries( xivdat PUBLIC zlib1 )
|
||
|
endif()
|
||
|
target_include_directories( xivdat PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
|
||
|
cotire( xivdat )
|