adopt for QtCreator 8, separate build

This commit is contained in:
2022-12-07 10:58:56 +03:00
parent 57d5b83daf
commit e4ca4018ca
2 changed files with 14 additions and 7 deletions

View File

@@ -1,7 +1,13 @@
#cmake_minimum_required(VERSION 3.17)
#project(ProjectFilesystemPlugin)
#include($ENV{SDK_QTCREATOR_SRC}/cmake/QtCreatorAPI.cmake)
cmake_minimum_required(VERSION 3.17)
project(ProjectFilesystemPlugin)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 17)
find_package(QtCreator COMPONENTS Core REQUIRED)
file(GLOB SRC "*.h" "*.cpp" "*.ui" "*.qrc")
add_qtc_plugin(ProjectFilesystemPlugin
PLUGIN_DEPENDS Core ProjectExplorer
SOURCES ${SRC})
PLUGIN_DEPENDS
QtCreator::Core
QtCreator::ProjectExplorer
SOURCES ${SRC})