# ANSLIB — Main facade DLL (aggregates all modules)
add_library(ANSLIB SHARED
    ANSLIB.cpp
    ANSLIB.h
    dllmain.cpp
    pch.cpp
    pch.h
    framework.h
)

target_include_directories(ANSLIB PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${SHARED_INCLUDE_DIR}
)

target_link_libraries(ANSLIB
    PUBLIC ANSLibsLoader
    PUBLIC ANSLicensingSystem
    PUBLIC opencv
    # The facade links against all modules
    PRIVATE ANSODEngine
    PRIVATE ANSCV
    PRIVATE ANSMOT
    PRIVATE ANSUtilities
    PRIVATE ANSOCR
    PRIVATE ANSFR
    PRIVATE ANSLPR
)

target_compile_definitions(ANSLIB PRIVATE UNICODE _UNICODE ANSLIB_EXPORTS _USRDLL)
target_precompile_headers(ANSLIB PRIVATE pch.h)
