mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 22:17:31 +00:00
27 lines
522 B
CMake
27 lines
522 B
CMake
|
set(DCOMMON_SOURCES "AMFFormat.cpp"
|
||
|
"AMFFormat_BitStream.cpp"
|
||
|
"BinaryIO.cpp"
|
||
|
"dConfig.cpp"
|
||
|
"Diagnostics.cpp"
|
||
|
"dLogger.cpp"
|
||
|
"GeneralUtils.cpp"
|
||
|
"LDFFormat.cpp"
|
||
|
"MD5.cpp"
|
||
|
"Metrics.cpp"
|
||
|
"NiPoint3.cpp"
|
||
|
"NiQuaternion.cpp"
|
||
|
"SHA512.cpp"
|
||
|
"Type.cpp"
|
||
|
"ZCompression.cpp")
|
||
|
|
||
|
include_directories(${PROJECT_SOURCE_DIR}/dCommon/)
|
||
|
|
||
|
add_library(dCommon STATIC ${DCOMMON_SOURCES})
|
||
|
|
||
|
target_link_libraries(dCommon libbcrypt)
|
||
|
|
||
|
if (UNIX)
|
||
|
find_package(ZLIB REQUIRED)
|
||
|
target_link_libraries(dCommon ZLIB::ZLIB)
|
||
|
endif()
|