ENABLE_TESTING() set(certunittest_bin_SRCS certunittest.cpp) add_executable(certunittest ${certunittest_bin_SRCS} ) target_link_qca_test_libraries(certunittest) FOREACH( testFileName RootCAcert.pem 76.pem altname.pem csr1.pem GoodCACRL.pem ov-root-ca-cert.crt User.pem QcaTestClientCert.pem xmppcert.pem Server.pem QcaTestServerCert.pem xmppcert.pem newreq.pem QualitySSLIntermediateCA.crt QcaTestRootCert.pem Test_CRL.crl RAIZ2007_CERTIFICATE_AND_CRL_SIGNING_SHA256.crt ) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/certs/${testFileName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/certs/${testFileName} COPYONLY) ENDFOREACH( testFileName ) add_qca_test(certunittest "Certificate")