CMakeLists.txt 441 B

1234567891011121314151617181920
  1. cmake_minimum_required(VERSION 3.7.0)
  2. project(calculator LANGUAGES CXX)
  3. set(CMAKE_AUTOMOC ON)
  4. # SingleApplication base class
  5. set(QAPPLICATION_CLASS QApplication)
  6. add_executable(${PROJECT_NAME}
  7. button.h
  8. calculator.h
  9. button.cpp
  10. calculator.cpp
  11. main.cpp
  12. )
  13. find_package(Qt5 COMPONENTS Widgets REQUIRED)
  14. add_subdirectory(../.. SingleApplication)
  15. target_link_libraries(${PROJECT_NAME} SingleApplication::SingleApplication)