project(acbf)

set(acbf_SRCS
    AcbfAuthor.cpp
    AcbfBinary.cpp
    AcbfBody.cpp
    AcbfBookinfo.cpp
    AcbfContentrating.cpp
    AcbfData.cpp
    AcbfDatabaseref.cpp
    AcbfDocument.cpp
    AcbfDocumentinfo.cpp
    AcbfLanguage.cpp
    AcbfMetadata.cpp
    AcbfPage.cpp
    AcbfPublishinfo.cpp
    AcbfSequence.cpp
    AcbfTextarea.cpp
    AcbfTextlayer.cpp
)

add_library(acbf SHARED ${acbf_SRCS})
generate_export_header(acbf BASE_NAME acbf)

target_link_libraries(acbf
    PUBLIC
    Qt5::Core
)

install(TARGETS acbf ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})

project(acbf)

set(acbf_SRCS
    AcbfAuthor.cpp
    AcbfBinary.cpp
    AcbfBody.cpp
    AcbfBookinfo.cpp
    AcbfContentrating.cpp
    AcbfData.cpp
    AcbfDatabaseref.cpp
    AcbfDocument.cpp
    AcbfDocumentinfo.cpp
    AcbfLanguage.cpp
    AcbfMetadata.cpp
    AcbfPage.cpp
    AcbfPublishinfo.cpp
    AcbfSequence.cpp
    AcbfTextarea.cpp
    AcbfTextlayer.cpp
)

add_library(acbf SHARED ${acbf_SRCS})
generate_export_header(acbf BASE_NAME acbf)

target_link_libraries(acbf
    PUBLIC
    Qt5::Core
)

set_target_properties(acbf PROPERTIES
   VERSION 0.1
   SOVERSION 0.1
   EXPORT_NAME AdvancedComicBookFormat
)

install(TARGETS acbf ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})

Set an SO version for libacbf (because not having that's silly)
Set an SO version for libacbf (because not having that's silly)
