mirror of
https://github.com/mchernigin/libqbase.git
synced 2024-12-22 09:33:53 +03:00
615407fce0
* refacor: rename baselib to libqbase * gear: rename package * ci: rename github workflows
27 lines
572 B
CMake
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}")
|
|
|