mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
more APIs
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
file(GLOB unit_test_src
|
||||
"include/*.h"
|
||||
"src/*.cpp"
|
||||
"src/core/*.cpp"
|
||||
)
|
||||
|
||||
if (MSVC AND CLANG)
|
||||
set_source_files_properties(${unit_test_src} PROPERTIES COMPILE_FLAGS "-Wno-pragma-pack")
|
||||
endif()
|
||||
|
||||
add_library(unit_test STATIC ${unit_test_src})
|
||||
|
||||
target_link_libraries(unit_test core)
|
||||
target_link_libraries(unit_test math)
|
||||
|
||||
target_include_directories(unit_test PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
|
||||
list(APPEND inc_headers
|
||||
${PROJECT_BINARY_DIR}
|
||||
${PROJECT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/sdl2/include
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/lua/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/gtest/include
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/gtest
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/rijndael/source
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/miniz
|
||||
# ${CMAKE_SOURCE_DIR}/3rdparty/magic_enum/include
|
||||
)
|
||||
|
||||
list(APPEND check_headers
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
clang_tidy_check(unit_test "" "${check_headers}" "${inc_headers}")
|
||||
|
||||
include_what_you_use(unit_test "${inc_headers}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user