2006-12-02 11:53:32 +00:00
|
|
|
ENABLE_TESTING()
|
|
|
|
|
2006-10-12 03:14:47 +00:00
|
|
|
set(hashunittest_bin_SRCS hashunittest.cpp)
|
|
|
|
|
|
|
|
MY_AUTOMOC( hashunittest_bin_SRCS )
|
|
|
|
|
|
|
|
add_executable( hashunittest ${hashunittest_bin_SRCS} )
|
|
|
|
|
2013-08-24 23:24:13 +06:00
|
|
|
target_link_libraries( hashunittest ${QCA_LIB_NAME} ${QT_QTTEST_LIBRARY})
|
2006-10-12 03:14:47 +00:00
|
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/empty ${CMAKE_CURRENT_BINARY_DIR}/data/empty COPYONLY)
|
2007-07-08 04:50:36 +00:00
|
|
|
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)
|
2006-10-12 03:14:47 +00:00
|
|
|
|
2006-12-02 11:53:32 +00:00
|
|
|
ADD_TEST(Hashing ${EXECUTABLE_OUTPUT_PATH}/hashunittest)
|