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