CMake: use target_include_directories to expose includes
This makes glslang simpler to embed in larger projects.
This commit is contained in:
committed by
Michael M
parent
c6d255396f
commit
a895f378ee
@@ -43,6 +43,7 @@ endif(ENABLE_NV_EXTENSIONS)
|
||||
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
||||
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
||||
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
target_include_directories(SPIRV PUBLIC ..)
|
||||
|
||||
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
||||
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
|
||||
|
||||
Reference in New Issue
Block a user