Add CMake files

pull/2/head
Vadim vtroshchinskiy 2023-10-19 12:46:31 +02:00
parent fedf2a2a9f
commit c0cec9d83b
3 changed files with 54 additions and 0 deletions

17
CMakePresets.json 100644
View File

@ -0,0 +1,17 @@
{
"version": 2,
"configurePresets": [
{
"name": "Default",
"displayName": "Configure preset using toolchain file",
"description": "Sets Ninja generator, build and install directory",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
}
}
]
}

View File

@ -0,0 +1,17 @@
{
"version": 2,
"configurePresets": [
{
"name": "Default",
"displayName": "Configure preset using toolchain file",
"description": "Sets Ninja generator, build and install directory",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
}
}
]
}

View File

@ -0,0 +1,20 @@
# - Find the QTermWidget include and library
#
# Typical usage:
# find_package(QTermWidget5 REQUIRED)
#
# add_executable(foo main.cpp)
# target_link_libraries(foo qtermwidget5)
@PACKAGE_INIT@
if (CMAKE_VERSION VERSION_LESS 3.0.2)
message(FATAL_ERROR \"qtermwidget requires at least CMake version 3.0.2\")
endif()
if (NOT TARGET @QTERMWIDGET_LIBRARY_NAME@)
if (POLICY CMP0024)
cmake_policy(SET CMP0024 NEW)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/@QTERMWIDGET_LIBRARY_NAME@-targets.cmake")
endif()