basic setup
This commit is contained in:
parent
c60811620a
commit
697695b860
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
project(basiccmake LANGUAGES CXX)
|
||||
project(gpn-maze-bot LANGUAGES CXX)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
include(GlobalOptions)
|
||||
|
@ -10,11 +10,3 @@ include(Format)
|
|||
#find_package(foo REQUIRED)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
install(DIRECTORY include TYPE INCLUDE FILES_MATCHING PATTERN *.h)
|
||||
install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets)
|
||||
install(EXPORT ${PROJECT_NAME}-targets NAMESPACE ${PROJECT_NAME}::
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}")
|
||||
configure_file(cmake/config.cmake.in ${PROJECT_NAME}-config.cmake @ONLY)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}")
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
add_compile_options(-Wall -Werror -Wno-unknown-warning-option)
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_CLANG_TIDY clang-tidy --config=)
|
||||
#set(CMAKE_CXX_CLANG_TIDY clang-tidy --config=)
|
||||
|
|
Loading…
Reference in a new issue