SingleApplication/examples/basic/CMakeLists.txt

14 lines
317 B
CMake
Raw Normal View History

2020-05-15 23:54:23 +08:00
cmake_minimum_required(VERSION 3.7.0)
2020-05-15 23:42:56 +08:00
project(basic LANGUAGES CXX)
# SingleApplication base class
2020-05-15 23:42:56 +08:00
set(QAPPLICATION_CLASS QCoreApplication)
2020-05-15 23:42:56 +08:00
add_executable(basic main.cpp)
find_package(Qt5 COMPONENTS Core REQUIRED)
add_subdirectory(../.. SingleApplication)
2020-05-15 23:42:56 +08:00
target_link_libraries(${PROJECT_NAME} SingleApplication)