mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
update 3rdparty libs
This commit is contained in:
@@ -6,35 +6,32 @@ if (MSVC AND CLANG)
|
||||
set_source_files_properties(${core_src} PROPERTIES COMPILE_FLAGS "-Wno-pragma-pack")
|
||||
endif()
|
||||
|
||||
add_library(core_obj OBJECT ${core_src})
|
||||
#add_library(core STATIC ${core_src})
|
||||
add_library(core STATIC $<TARGET_OBJECTS:core_obj>)
|
||||
|
||||
target_link_libraries(core sys)
|
||||
target_link_libraries(core math)
|
||||
target_link_libraries(core sdl2)
|
||||
target_link_libraries(core sqlite)
|
||||
target_link_libraries(core lzma)
|
||||
target_link_libraries(core zstd)
|
||||
#add_library(core_obj OBJECT ${core_src})
|
||||
add_library(core STATIC ${core_src})
|
||||
#add_library(core STATIC $<TARGET_OBJECTS:core_obj>)
|
||||
|
||||
target_link_libraries(core sys math SDL2-static sqlite lzma zstd miniz)
|
||||
|
||||
get_property(inc_headers TARGET core PROPERTY INCLUDE_DIRECTORIES)
|
||||
list(APPEND inc_headers
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/sdl2/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/sdl2/sdl2/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/sqlite/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/lzma/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/zstd/lib
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/miniz/src
|
||||
)
|
||||
|
||||
target_include_directories(core PRIVATE ${inc_headers})
|
||||
target_include_directories(core_obj PRIVATE ${inc_headers})
|
||||
#target_include_directories(core_obj PRIVATE ${inc_headers})
|
||||
|
||||
list(APPEND check_headers
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
clang_tidy_check(core_obj "" "${check_headers}" "${inc_headers}")
|
||||
#clang_tidy_check(core_obj "" "${check_headers}" "${inc_headers}")
|
||||
clang_tidy_check(core "" "${check_headers}" "${inc_headers}")
|
||||
|
||||
include_what_you_use(core_obj "${inc_headers}")
|
||||
#include_what_you_use(core_obj "${inc_headers}")
|
||||
include_what_you_use(core "${inc_headers}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user