mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-11 10:19:33 +00:00
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.
17 lines
599 B
CMake
17 lines
599 B
CMake
ENABLE_TESTING()
|
|
|
|
set(hashunittest_bin_SRCS hashunittest.cpp)
|
|
|
|
MY_AUTOMOC( hashunittest_bin_SRCS )
|
|
|
|
add_executable( hashunittest ${hashunittest_bin_SRCS} )
|
|
|
|
target_link_qca_test_libraries(hashunittest)
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/empty ${CMAKE_CURRENT_BINARY_DIR}/data/empty COPYONLY)
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/twobytes ${CMAKE_CURRENT_BINARY_DIR}/data/twobytes COPYONLY)
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/twohundredbytes ${CMAKE_CURRENT_BINARY_DIR}/data/twohundredbytes COPYONLY)
|
|
|
|
ADD_TEST(Hashing ${EXECUTABLE_OUTPUT_PATH}/hashunittest)
|