[go: up one dir, main page]

0% found this document useful (0 votes)
12 views1 page

CMake Lists

The document outlines the build configuration for a shader library and its associated tests using CMake. It specifies the source files for the static library, includes directories, and links to necessary libraries. Additionally, it sets up an executable for testing with Google Test and conditionally links to Tracy for profiling if enabled.

Uploaded by

gagakikibobontan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

CMake Lists

The document outlines the build configuration for a shader library and its associated tests using CMake. It specifies the source files for the static library, includes directories, and links to necessary libraries. Additionally, it sets up an executable for testing with Google Test and conditionally links to Tracy for profiling if enabled.

Uploaded by

gagakikibobontan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

add_library(

shader
STATIC
src/translator/alu.cpp
src/translator/ialu.cpp
src/translator/branch_cond.cpp
src/translator/data.cpp
src/translator/special.cpp
src/translator/illegal.cpp
src/translator/texture.cpp
src/translator/utils.cpp
src/gxp_parser.cpp
src/usse_disasm.cpp
src/usse_program_analyzer.cpp
src/usse_decode_helpers.cpp
src/usse_translator_entry.cpp
src/usse_utilities.cpp
src/spirv_recompiler.cpp
)

target_include_directories(shader PUBLIC include)


target_link_libraries(shader PUBLIC features gxm util)
target_link_libraries(shader PRIVATE SPIRV spirv-cross-glsl)

# Marshmallow Tracy linking


if(TRACY_ENABLE_ON_CORE_COMPONENTS)
target_link_libraries(shader PRIVATE tracy)
endif()

add_executable(
shader-tests
tests/usse_program_analyzer_test.cpp
)

target_include_directories(shader-tests PRIVATE include)


target_link_libraries(shader-tests PRIVATE googletest shader util)
add_test(NAME shader COMMAND shader-tests)

You might also like