add cmake support

This commit is contained in:
coconil 2023-01-31 22:17:32 +08:00 committed by zinface
parent 43df23b4f4
commit 8c2478f6fa
2 changed files with 5 additions and 3 deletions

View File

@ -53,3 +53,5 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/linux/usr
include(${PROJECT_SOURCE_DIR}/cmake/package_config.cmake) include(${PROJECT_SOURCE_DIR}/cmake/package_config.cmake)
include(CPack) include(CPack)
target_link_libraries(${PROJECT_NAME} qscint Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Concurrent Qt5::Network Qt5::PrintSupport Qt5::XmlPatterns)

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.24)
project(qscintilla2_qt5 CXX) project(qscint CXX)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)