yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

kaizhangNVRevert "Reduce the dependency to thread library (#8216)" (#8319)74c39eaa3

master
834 B19 linesraw
1if(SLANG_ENABLE_SLANGRT)
2    slang_add_target(
3        .
4        ${SLANG_LIB_TYPE}
5        # This compiles 'core' again with the SLANG_RT_DYNAMIC_EXPORT macro defined
6        EXTRA_SOURCE_DIRS ${slang_SOURCE_DIR}/source/core
7        USE_EXTRA_WARNINGS
8        LINK_WITH_PRIVATE miniz lz4_static Threads::Threads ${CMAKE_DL_LIBS}
9        LINK_WITH_PUBLIC unordered_dense::unordered_dense
10        EXPORT_MACRO_PREFIX SLANG_RT
11        INCLUDE_DIRECTORIES_PUBLIC ${slang_SOURCE_DIR}/include
12        INSTALL
13        # This depends on unordered_dense in the header, so we can't export
14        # this via cmake without obligating ourselves to also install our
15        # bundled version of unordered_dense, give it this different export set
16        # name so we don't attempt to export it
17        EXPORT_SET_NAME SlangRTTargets
18    )
19endif()