summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/code/doc_src_cmakelists.txt
blob: 96dbe1acee3b816bd0eabef7f2517468dc34aadd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
project(mytest LANGUAGES CXX)

find_package(Qt5Test REQUIRED)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOMOC ON)

enable_testing(true)

add_executable(mytest tst_mytest.cpp)
add_test(NAME mytest COMMAND mytest)

target_link_libraries(mytest PRIVATE Qt5::Test)