4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-12 18:49:34 +00:00
qca/unittest/cms/CMakeLists.txt
Ivan Romanov 6d690c0070 Build static QCA
Added new cmake variable SHARED_LIBRARY. By default is on.
When it is off QCA library, plugins, tools, examples and unittests
will be built as static. Also if is used static Qt plugins will be
built as static. Tested with Qt4.
2014-01-02 03:50:18 +06:00

16 lines
447 B
CMake

ENABLE_TESTING()
set(cms_bin_SRCS cms.cpp)
MY_AUTOMOC( cms_bin_SRCS )
add_executable(cms ${cms_bin_SRCS} )
target_link_qca_test_libraries(cms)
FOREACH( testFileName QcaTestRootCert.pem QcaTestClientCert.pem QcaTestClientKey.pem )
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${testFileName} ${CMAKE_CURRENT_BINARY_DIR}/${testFileName} COPYONLY)
ENDFOREACH( testFileName )
ADD_TEST(CryptographicMessageSyntax ${EXECUTABLE_OUTPUT_PATH}/cms)