mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 13:16:40 +00:00
26 lines
584 B
CMake
26 lines
584 B
CMake
file(GLOB scripts_src
|
|
"src/*.cpp"
|
|
)
|
|
|
|
add_library(scripts_obj OBJECT ${scripts_src})
|
|
add_library(scripts STATIC $<TARGET_OBJECTS:scripts_obj>)
|
|
|
|
target_link_libraries(scripts core)
|
|
|
|
#target_include_directories(scripts PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
get_property(inc_headers TARGET scripts PROPERTY INCLUDE_DIRECTORIES)
|
|
|
|
target_include_directories(scripts_obj PRIVATE ${inc_headers})
|
|
|
|
list(APPEND check_headers
|
|
${CMAKE_SOURCE_DIR}/include
|
|
)
|
|
|
|
clang_tidy_check(scripts_obj "" "${check_headers}" "${inc_headers}")
|
|
|
|
include_what_you_use(scripts_obj "${inc_headers}")
|
|
|
|
|
|
|