20 glslang_pch(SOURCES pch.cpp)
22 add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
23 set_property(TARGET HLSL PROPERTY FOLDER hlsl)
24 set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
26 if(WIN32 AND BUILD_SHARED_LIBS)
27 set_target_properties(HLSL PROPERTIES PREFIX "")
31 source_group("Source" FILES ${SOURCES} ${HEADERS})
34 if(ENABLE_GLSLANG_INSTALL)
36 install(TARGETS HLSL EXPORT HLSLTargets
37 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
38 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
39 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
41 install(TARGETS HLSL EXPORT HLSLTargets
42 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
44 install(EXPORT HLSLTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
45 endif(ENABLE_GLSLANG_INSTALL)