summaryrefslogtreecommitdiffstats
path: root/src/qttools-test.cmake
blob: 7291eb8ec9b6c924cb9ef8e521bebe4d98bef52c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is part of MXE. See LICENSE.md for licensing information.

# partial module - included by src/cmake/CMakeLists.txt

set(TGT test-${PKG}-cmake)

enable_language(CXX)
add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.cpp)

find_package(Qt5 ${PKG_VERSION} EXACT REQUIRED COMPONENTS UiTools)

# still requires extra Qt5::Gui since cmake gets the ordering wrong
target_link_libraries(${TGT} Qt5::UiTools Qt5::Gui)

install(TARGETS ${TGT} DESTINATION bin)