gpgme: improve CMakeLists.txt
Simplify code by using ADD_TEST
@@ -18,10 +18,5 @@ add_plugin (gpgme
SOURCES ${GPGME_SOURCE_FILES}
INCLUDE_DIRECTORIES ${LIBGPGME_INCLUDE_DIR}
LINK_LIBRARIES ${LIBGPGME_LIBRARIES}
- COMPILE_DEFINITIONS ELEKTRA_PLUGIN_NAME=\"gpgme\")
-
-if (ADDTESTING_PHASE)
-
- add_plugintest (gpgme LINK_PLUGIN "gpgme")
-
-endif ()
+ COMPILE_DEFINITIONS ELEKTRA_PLUGIN_NAME=\"gpgme\"
+ ADD_TEST)
