Я пересоздал репозиторий из-за большого количества мусора в прошлом
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
file(GLOB SRC "*.cpp" "*.h")
|
||||
|
||||
add_library(FastRTTI STATIC ${SRC})
|
||||
|
||||
target_include_directories(FastRTTI
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
if(MSVC)
|
||||
target_compile_options(FastRTTI PRIVATE /GR-)
|
||||
target_link_options(FastRTTI PRIVATE /LTCG)
|
||||
else()
|
||||
# GCC / Clang
|
||||
target_compile_options(FastRTTI PRIVATE -fno-rtti)
|
||||
target_link_options(FastRTTI PRIVATE -flto)
|
||||
endif()
|
||||
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
if(MSVC)
|
||||
target_compile_options(FastRTTI PRIVATE /GR-)
|
||||
else()
|
||||
target_compile_options(FastRTTI PRIVATE
|
||||
-g
|
||||
-fno-rtti)
|
||||
endif()
|
||||
endif()
|
||||
Reference in New Issue
Block a user