mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
add Linux support
This commit is contained in:
@@ -2,22 +2,25 @@ file(GLOB sys_src
|
||||
"src/*.cpp"
|
||||
)
|
||||
|
||||
add_library(sys_obj OBJECT ${sys_src})
|
||||
add_library(sys STATIC $<TARGET_OBJECTS:sys_obj>)
|
||||
add_library(sys STATIC ${sys_src})
|
||||
|
||||
target_link_libraries(sys core)
|
||||
target_link_libraries(sys core cpuinfo)
|
||||
|
||||
get_property(inc_headers TARGET sys PROPERTY INCLUDE_DIRECTORIES)
|
||||
|
||||
target_include_directories(sys_obj PRIVATE ${inc_headers})
|
||||
|
||||
list(APPEND check_headers
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
clang_tidy_check(sys_obj "" "${check_headers}" "${inc_headers}")
|
||||
list(APPEND inc_headers
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/sdl2/sdl2/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/cpuinfo/include
|
||||
)
|
||||
|
||||
include_what_you_use(sys_obj "${inc_headers}")
|
||||
clang_tidy_check(sys "" "${check_headers}" "${inc_headers}")
|
||||
#clang_tidy_fix(sys_obj "{Checks: '-*,cppcoreguidelines-init-variables'}" "${check_headers}" "${inc_headers}")
|
||||
|
||||
include_what_you_use(sys "${inc_headers}")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user