Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/libutils/oglapphelpers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ if(APPLE)

endif()

if(OCIO_VULKAN_ENABLED)

find_package(Vulkan REQUIRED)
find_package(glslang REQUIRED)

list(APPEND SOURCES
vulkanapp.cpp
)

list(APPEND INCLUDES
vulkanapp.h
)

endif()

add_library(oglapphelpers STATIC ${SOURCES})
set_target_properties(oglapphelpers PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(oglapphelpers PROPERTIES OUTPUT_NAME OpenColorIOoglapphelpers)
Expand Down Expand Up @@ -111,6 +126,24 @@ if(APPLE)
)
endif()

if(OCIO_VULKAN_ENABLED)
target_include_directories(oglapphelpers
PUBLIC
${Vulkan_INCLUDE_DIRS}
)
target_link_libraries(oglapphelpers
PUBLIC
Vulkan::Vulkan
glslang::glslang
glslang::glslang-default-resource-limits
glslang::SPIRV
)
target_compile_definitions(oglapphelpers
PUBLIC
OCIO_VULKAN_ENABLED
)
endif()

if(${OCIO_EGL_HEADLESS})
target_include_directories(oglapphelpers
PRIVATE
Expand Down
Loading