2022-07-16 23:24:16 +00:00
|
|
|
set(DCOMMON_SOURCES "AMFFormat.cpp"
|
2022-07-20 04:51:05 +00:00
|
|
|
"AMFDeserialize.cpp"
|
2022-07-16 23:24:16 +00:00
|
|
|
"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})
|
|
|
|
|
2022-08-19 02:23:42 +00:00
|
|
|
target_link_libraries(dCommon bcrypt)
|
2022-07-16 23:24:16 +00:00
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
target_link_libraries(dCommon ZLIB::ZLIB)
|
|
|
|
endif()
|