SingleApplication/examples/calculator/CMakeLists.txt

21 lines
422 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.1.0)
2020-05-15 23:42:56 +08:00
project(calculator LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
# SingleApplication base class
2020-05-15 23:42:56 +08:00
set(QAPPLICATION_CLASS QApplication)
add_executable(${PROJECT_NAME}
button.h
calculator.h
button.cpp
calculator.cpp
main.cpp
2020-05-15 23:42:56 +08:00
)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
add_subdirectory(../.. SingleApplication)
2020-05-15 23:42:56 +08:00
target_link_libraries(${PROJECT_NAME} SingleApplication)