Commit 49a3f89a authored by jan.koester's avatar jan.koester
Browse files

test

parent a745a3b0
Loading
Loading
Loading
Loading
Loading
+14 −4
Changes for src/CMakeLists.txt: 14 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ include_directories(

install(FILES session.h authdb.h backend.h types.h group.h user.h exception.h service.h plugin.h index.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/authdb)

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
if(WIN32)
    install(
        TARGETS authdb
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
@@ -88,18 +88,28 @@ else()
    )
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
if(WIN32)
    install(
        RUNTIME_DEPENDENCY_SET authdyn
        TARGETS authdb
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}

        RUNTIME_DEPENDENCIES
        DIRECTORIES
            "$<TARGET_FILE_DIR:htmlpp::htmlpp>"
            "$<TARGET_FILE_DIR:httppp::httppp>"
            "$<TARGET_FILE_DIR:uuidp::uuidp>"
            "$<TARGET_FILE_DIR:json-c::json-c>"
        DESTINATION ${CMAKE_INSTALL_BINDIR}

        PRE_EXCLUDE_REGEXES
            "((api|ext)-ms-.*|.*azureattest.*|vcruntime.*|ucrtbase.*|msvcrt.*|wpaxholder.*|hvsifiletrust.*|pdmutilities.*)\\.dll"

        POST_EXCLUDE_REGEXES
            ".*[\\\\/]system32[\\\\/].*\\.dll"
    )
else()
    install(
        TARGETS authdb
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/authdb
    )
endif()