2013-11-11 21:08:56 +06:00
|
|
|
if(WITH_botan_PLUGIN STREQUAL "yes")
|
|
|
|
find_package(Botan REQUIRED)
|
|
|
|
else(WITH_botan_PLUGIN STREQUAL "yes")
|
|
|
|
find_package(Botan)
|
|
|
|
endif(WITH_botan_PLUGIN STREQUAL "yes")
|
2006-10-03 12:35:11 +00:00
|
|
|
|
2013-11-11 21:08:56 +06:00
|
|
|
if(BOTAN_FOUND)
|
|
|
|
set(WITH_botan_PLUGIN "yes" PARENT_SCOPE)
|
2006-12-02 11:45:07 +00:00
|
|
|
|
2013-11-11 21:08:56 +06:00
|
|
|
set(QCA_BOTAN_SOURCES qca-botan.cpp)
|
|
|
|
add_definitions(${BOTAN_CFLAGS})
|
|
|
|
my_automoc(QCA_BOTAN_SOURCES)
|
|
|
|
add_library(qca-botan MODULE ${QCA_BOTAN_SOURCES})
|
|
|
|
target_link_libraries(qca-botan ${QT_QTCORE_LIBRARY} ${QCA_LIB_NAME} ${BOTAN_LIBRARIES})
|
2006-10-03 12:35:11 +00:00
|
|
|
|
2013-11-11 21:08:56 +06:00
|
|
|
install(TARGETS qca-botan
|
|
|
|
LIBRARY DESTINATION "${QCA_PLUGINS_INSTALL_DIR}"
|
|
|
|
ARCHIVE DESTINATION "${QCA_PLUGINS_INSTALL_DIR}"
|
|
|
|
RUNTIME DESTINATION "${QCA_PLUGINS_INSTALL_DIR}")
|
|
|
|
else(BOTAN_FOUND)
|
|
|
|
set(WITH_botan_PLUGIN "no" PARENT_SCOPE)
|
|
|
|
endif(BOTAN_FOUND)
|