CMakeLists.txt 336 B

12345678910111213
  1. cmake_minimum_required(VERSION 3.7.0)
  2. project(basic LANGUAGES CXX)
  3. # SingleApplication base class
  4. set(QAPPLICATION_CLASS QCoreApplication)
  5. add_executable(basic main.cpp)
  6. find_package(Qt5 COMPONENTS Core REQUIRED)
  7. add_subdirectory(../.. SingleApplication)
  8. target_link_libraries(${PROJECT_NAME} SingleApplication::SingleApplication)