mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-06-25 01:21:33 +02:00
24 lines
425 B
CMake
24 lines
425 B
CMake
set(QT_USE_QTTEST TRUE)
|
|
|
|
if (NOT Qt5Core_FOUND)
|
|
include( $QT_USE_FILE} )
|
|
endif()
|
|
|
|
include(AddFileDependencies)
|
|
|
|
include_directories(../../src ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(UNIT_TESTS pack_test)
|
|
|
|
foreach(test ${UNIT_TESTS})
|
|
message(status "Building ${test}")
|
|
add_executable(${test} ${test}.cpp)
|
|
|
|
target_link_libraries(${test}
|
|
${QT_LIBRARIES}
|
|
${TEST_LIBRARIES}
|
|
qmsgpack
|
|
)
|
|
|
|
add_test(${test} ${test})
|
|
endforeach() |