libqbase/CMakeLists.txt
Michael Chernigin 615407fce0
refactor: rename baselib to libqbase (#3)
* refacor: rename baselib to libqbase
* gear: rename package
* ci: rename github workflows
2023-09-26 12:20:47 +04:00

27 lines
572 B
CMake

cmake_minimum_required(VERSION 3.15)
project(qbase
VERSION 0.0.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(GNUInstallDirs)
include(CheckCXXCompilerFlag)
add_subdirectory(src)
file(GLOB COMMON_INCLUDES "${PROJECT_SOURCE_DIR}/include/*.h")
install(
FILES ${COMMON_INCLUDES}
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/")
configure_file(
${PROJECT_NAME}-config.cmake.in
${PROJECT_NAME}-config.cmake
@ONLY)
install(
FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")