cmake_minimum_required(VERSION 3.4.1) get_filename_component(GFXRECON_SOURCE_DIR ../.. ABSOLUTE) include(../framework/cmake-config/PlatformConfig.cmake) add_subdirectory(../framework/util ${CMAKE_SOURCE_DIR}/../framework/util/build) add_subdirectory(../framework/graphics ${CMAKE_SOURCE_DIR}/../framework/graphics/build) add_subdirectory(../framework/format ${CMAKE_SOURCE_DIR}/../framework/format/build) add_subdirectory(../framework/encode ${CMAKE_SOURCE_DIR}/../framework/encode/build) add_library(VkLayer_gfxreconstruct SHARED "") target_sources(VkLayer_gfxreconstruct PRIVATE ${GFXRECON_SOURCE_DIR}/layer/dll_main.cpp ${GFXRECON_SOURCE_DIR}/layer/trace_layer.h ${GFXRECON_SOURCE_DIR}/layer/trace_layer.cpp ${GFXRECON_SOURCE_DIR}/framework/generated/generated_layer_func_table.h ) target_include_directories(VkLayer_gfxreconstruct PUBLIC ${CMAKE_BINARY_DIR} ${GFXRECON_SOURCE_DIR}) target_link_libraries(VkLayer_gfxreconstruct gfxrecon_encode gfxrecon_graphics gfxrecon_format gfxrecon_util vulkan_registry platform_specific android log)