Added spdlog, fmt and glslang as public targets

This commit is contained in:
Alejandro Saucedo 2021-03-14 11:10:04 +00:00
parent 4e1ef1fae8
commit 25fc03cb72

View file

@ -57,7 +57,7 @@ target_include_directories(
if(NOT KOMPUTE_OPT_ANDOID_BUILD) if(NOT KOMPUTE_OPT_ANDOID_BUILD)
target_link_libraries( target_link_libraries(
kompute kompute PRIVATE
Vulkan::Vulkan Vulkan::Vulkan
) )
else() else()
@ -87,7 +87,7 @@ else()
endif() endif()
target_link_libraries( target_link_libraries(
kompute kompute PUBLIC
fmt::fmt fmt::fmt
) )
@ -103,7 +103,7 @@ if(KOMPUTE_OPT_ENABLE_SPDLOG)
endif() endif()
target_link_libraries( target_link_libraries(
kompute kompute PUBLIC
spdlog::spdlog spdlog::spdlog
) )
endif() endif()
@ -114,7 +114,7 @@ endif()
if(KOMPUTE_OPT_ANDOID_BUILD) if(KOMPUTE_OPT_ANDOID_BUILD)
target_link_libraries( target_link_libraries(
kompute kompute PRIVATE
kompute_vk_ndk_wrapper kompute_vk_ndk_wrapper
log log
android android
@ -152,7 +152,8 @@ if(NOT KOMPUTE_OPT_DISABLE_SHADER_UTILS)
kompute PRIVATE kompute PRIVATE
${PROJECT_SOURCE_DIR}/external/glslang) ${PROJECT_SOURCE_DIR}/external/glslang)
target_link_libraries(kompute target_link_libraries(
kompute PUBLIC
# Not including hlsl support # Not including hlsl support
# HLSL # HLSL
# glslang includes OGLCompiler, OSDependent, MachineIndependent # glslang includes OGLCompiler, OSDependent, MachineIndependent
@ -165,7 +166,8 @@ if(NOT KOMPUTE_OPT_DISABLE_SHADER_UTILS)
kompute PRIVATE kompute PRIVATE
${GLSLANG_GENERATED_INCLUDEDIR}) ${GLSLANG_GENERATED_INCLUDEDIR})
target_link_libraries(kompute target_link_libraries(
kompute PUBLIC
# Not including hlsl support # Not including hlsl support
# glslang::HLSL # glslang::HLSL
# Adding explicit dependencies to match above # Adding explicit dependencies to match above