Organise the dependencies

This commit is contained in:
2026-03-29 14:10:05 +11:00
parent bf70cbd11b
commit 6861de8fb4
18 changed files with 80 additions and 67 deletions

View File

@@ -14,15 +14,14 @@ target_include_directories(ANSLicensingSystem PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${SHARED_INCLUDE_DIR}
# These are needed by consumers because ANSLicense.h / Utility.h include them
${RESEARCH_DIR} # for LabVIEWHeader/extcode.h
${ANSLIBS_DIR} # for LabVIEWHeader/extcode.h
${ANSLIBS_DIR}/ZLIB/include # for zlib.h (Utility.h includes it)
${VCPKG_INCLUDE_DIR} # for zip.h (Utility.h includes it)
)
target_include_directories(ANSLicensingSystem PRIVATE
${ANLS_ROOT}/ANSLIB/anszip
${RESEARCH_DIR}/ANS-HWiNFO/include
${RESEARCH_DIR}/spdlog-1.12.0/include
${ANSLIBS_DIR}/ANS-HWiNFO/include
${ANSLIBS_DIR}/spdlog/include
)
target_link_libraries(ANSLicensingSystem
@@ -31,14 +30,13 @@ target_link_libraries(ANSLicensingSystem
PRIVATE opencv
PRIVATE zlib_dep
PRIVATE spdlog_dep
PRIVATE boost
PUBLIC boost
)
target_link_directories(ANSLicensingSystem PRIVATE
${RESEARCH_DIR}/ANS-HWiNFO/lib
${RESEARCH_DIR}/boost_lib
${ANSLIBS_DIR}/ANS-HWiNFO/lib
${ANSLIBS_DIR}/boost/lib
${VCPKG_LIB_DIR}
${ANLS_ROOT}/ANSLIB/anszip/x64/Release
)
# BASE64 class — not exported from anslicensing.dll, compile directly