qt5base-lts/examples/dbus/pingpong/CMakeLists.txt

28 lines
532 B
CMake
Raw Normal View History

# Generated from pong.pro.
cmake_minimum_required(VERSION 3.14)
project(pong LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS DBus)
add_executable(pong WIN32 MACOSX_BUNDLE
ping-common.h
pong.cpp pong.h
)
target_link_libraries(pong PUBLIC
# Remove: gui
Qt::DBus
)
install(TARGETS pong
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
)