mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 20:25:43 +08:00
076caedc23
Update minimum requered version in examples
21 lines
422 B
CMake
21 lines
422 B
CMake
cmake_minimum_required(VERSION 3.7.0)
|
|
|
|
project(calculator LANGUAGES CXX)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# SingleApplication base class
|
|
set(QAPPLICATION_CLASS QApplication)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
button.h
|
|
calculator.h
|
|
button.cpp
|
|
calculator.cpp
|
|
main.cpp
|
|
)
|
|
|
|
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
|
add_subdirectory(../.. SingleApplication)
|
|
target_link_libraries(${PROJECT_NAME} SingleApplication)
|