1# dEQP-VK.amber 2 3include_directories(..) 4 5set(DEQP_VK_AMBER_SRCS 6 vktAmberHelper.hpp 7 vktAmberHelper.cpp 8 vktAmberTestCase.hpp 9 vktAmberTestCase.cpp 10 vktAmberTestCaseUtil.cpp 11 vktAmberGraphicsFuzzTests.hpp 12 vktAmberGraphicsFuzzTests.cpp 13 vktAmberGlslTests.hpp 14 vktAmberGlslTests.cpp 15 ) 16 17set(DEQP_VK_AMBER_LIBS 18 tcutil 19 libamber 20 ) 21 22add_definitions(-DAMBER_CTS_VULKAN_HEADER=1) 23 24if (DE_COMPILER_IS_GCC OR DE_COMPILER_IS_CLANG) 25 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas") 26 set_source_files_properties( 27 FILES vktAmberHelper.cpp 28 PROPERTIES COMPILE_FLAGS "${DE_3RD_PARTY_CXX_FLAGS}") 29elseif (DE_COMPILER_IS_MSC) 30 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4068") 31endif () 32 33include_directories("../../../../amber/src/include") 34include_directories(${DEQP_INL_DIR}) 35 36add_library(deqp-vk-amber STATIC ${DEQP_VK_AMBER_SRCS}) 37target_link_libraries(deqp-vk-amber ${DEQP_VK_AMBER_LIBS}) 38 39add_custom_target(deqp-vk-amber-data) 40add_dependencies(deqp-vk-amber deqp-vk-amber-data) 41add_data_dir(deqp-vk-amber ../../../data/vulkan/amber amber) 42