qca/plugins/qca-softstore/CMakeLists.txt
Tobias Junghans 2c3992f075 Add Qt 6 build support
The Core5Compat module is still required for QTextCodec and some
difficult remaining QRegExp -> QRegularExpression migrations.
2021-05-29 22:28:27 +00:00

29 lines
835 B
CMake

# qca-softstore
enable_plugin("softstore")
set(QCA_SOFTSTORE_SOURCES qca-softstore.cpp)
add_library(qca-softstore ${PLUGIN_TYPE} ${QCA_SOFTSTORE_SOURCES})
if(APPLE AND ${PLUGIN_TYPE} STREQUAL "MODULE")
set_property(TARGET qca-softstore PROPERTY SUFFIX ".dylib")
endif()
add_definitions(${SOFTSTOREH_DEFINITIONS})
include_directories(${SOFTSTOREH_INCLUDE_DIR})
if(QT6)
target_link_libraries(qca-softstore Qt6::Core)
else()
target_link_libraries(qca-softstore Qt5::Core)
endif()
target_link_libraries(qca-softstore ${QCA_LIB_NAME})
if(NOT DEVELOPER_MODE)
install(TARGETS qca-softstore
LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}"
ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}"
RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}")
install_pdb(qca-softstore ${QCA_CRYPTO_INSTALL_DIR})
endif()