feat support stripped
All checks were successful
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 32s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 33s

This commit is contained in:
tqcq 2024-03-07 12:43:25 +08:00
parent 93ea3d11ef
commit 80b3dbcd1c

View File

@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_EXTENSIONS OFF)
option(SLED_BUILD_BENCHMARK "Build benchmark" OFF) option(SLED_BUILD_BENCHMARK "Build benchmark" OFF)
option(SLED_BUILD_TESTS "Build tests" OFF) option(SLED_BUILD_TESTS "Build tests" OFF)
option(SLED_LOCATION_STRIPPED_PATH "" "src/base/location.cc")
set(BUILD_STATIC ON) set(BUILD_STATIC ON)
set(BUILD_RTTR_DYNAMIC OFF) set(BUILD_RTTR_DYNAMIC OFF)
@ -21,6 +22,9 @@ endif()
if (NOT TARGET fmt) if (NOT TARGET fmt)
add_subdirectory(3party/fmt EXCLUDE_FROM_ALL) add_subdirectory(3party/fmt EXCLUDE_FROM_ALL)
endif() endif()
if (SLED_LOCATION_STRIPPED_PATH)
target_compile_definitions(sled PRIVATE __SLED_LOCATION_STRIPPED_PATH="${SLED_LOCATION_STRIPPED_PATH}")
endif()
# add_subdirectory(3party/eigen EXCLUDE_FROM_ALL) # add_subdirectory(3party/eigen EXCLUDE_FROM_ALL)
target_include_directories(sled PUBLIC 3party/eigen) target_include_directories(sled PUBLIC 3party/eigen)
target_sources( target_sources(