CMakeLists.txt 444 B

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