mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
c05562a227
* Use RecastNavigation CMakeLists * Use tinyxml2 CMakeLists * Use bcrypt CMakeLists * Move variable init to CMakeLists This has to be done here to prevent missing dependency errors. * General improvements Only link dynamic if on gnu use more thirdparty cmakes * Disable tinyxml2 testing
28 lines
542 B
CMake
28 lines
542 B
CMake
set(DCOMMON_SOURCES "AMFFormat.cpp"
|
|
"AMFDeserialize.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 bcrypt)
|
|
|
|
if (UNIX)
|
|
find_package(ZLIB REQUIRED)
|
|
target_link_libraries(dCommon ZLIB::ZLIB)
|
|
endif()
|