mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 12:08:50 +03:00
21 lines
465 B
CMake
21 lines
465 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_subdirectory(../.. SingleApplication)
|
|
|
|
find_package(Qt${QT_DEFAULT_MAJOR_VERSION} COMPONENTS Core REQUIRED)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
button.h
|
|
calculator.h
|
|
button.cpp
|
|
calculator.cpp
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME} SingleApplication::SingleApplication)
|