get rid of GlobalOptions.cmake
This commit is contained in:
parent
20fff66011
commit
f6956732cd
|
@ -6,7 +6,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|||
#find_package(foo REQUIRED)
|
||||
|
||||
include(AddAutoformatTarget)
|
||||
include(GlobalOptions)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
|
|
@ -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=)
|
|
@ -9,5 +9,13 @@ target_include_directories(${PROJECT_NAME}
|
|||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
target_compile_features(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
cxx_std_20
|
||||
)
|
||||
target_compile_options(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-Wall -Wextra>
|
||||
)
|
||||
|
||||
add_autoformat_target(${PROJECT_NAME})
|
||||
|
|
Loading…
Reference in a new issue