project(karchive-rar)

# For unarr
add_subdirectory(external)

set(karchive_rar_SRCS
    KRar.cpp
    KRarFileEntry.cpp
)

add_library(karchive-rar STATIC ${karchive_rar_SRCS})
target_link_libraries(karchive-rar
    PRIVATE unarr
    PUBLIC KF5::Archive
)

project(karchive-rar)

# For unarr
add_subdirectory(external)

set(karchive_rar_SRCS
    KRar.cpp
    KRarFileEntry.cpp
)

add_library(karchive-rar STATIC ${karchive_rar_SRCS})
target_link_libraries(karchive-rar
    PRIVATE unarr
    PUBLIC KF5::Archive
)
# A little hack, which makes the karchive_rar library think it's a part of KF5Archive
add_definitions(-DKF5Archive_EXPORTS)

Make the karchive_rar library think it's a part of KF5Archive
Make the karchive_rar library think it's a part of KF5Archive
