get rid of GlobalOptions.cmake

This commit is contained in:
Thomas Lindner 2022-11-06 04:15:16 +01:00
parent 20fff66011
commit e08a79f4da
3 changed files with 8 additions and 4 deletions

View file

@ -6,7 +6,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
#find_package(foo REQUIRED) #find_package(foo REQUIRED)
include(AddAutoformatTarget) include(AddAutoformatTarget)
include(GlobalOptions)
include(GNUInstallDirs) include(GNUInstallDirs)
add_subdirectory(src) add_subdirectory(src)

View file

@ -1,3 +0,0 @@
add_compile_options($<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:GNU>>:-Wall -Wextra>)
set(CMAKE_CXX_STANDARD 20)
#set(CMAKE_CXX_CLANG_TIDY clang-tidy --config=)

View file

@ -9,5 +9,13 @@ target_include_directories(${PROJECT_NAME}
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
) )
target_compile_features(${PROJECT_NAME}
PUBLIC
cxx_std_20
)
target_compile_options(${PROJECT_NAME}
PRIVATE
$<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:GNU>>:-Wall -Wextra>
)
add_autoformat_target(${PROJECT_NAME}) add_autoformat_target(${PROJECT_NAME})