2016-03-13 06:11:22 +03:00
|
|
|
set(SOURCES
|
2016-10-20 22:07:10 +03:00
|
|
|
hlslAttributes.cpp
|
2016-03-13 06:11:22 +03:00
|
|
|
hlslParseHelper.cpp
|
|
|
|
hlslScanContext.cpp
|
2016-05-04 08:17:20 +03:00
|
|
|
hlslOpMap.cpp
|
2016-05-04 07:49:24 +03:00
|
|
|
hlslTokenStream.cpp
|
2016-05-20 22:45:20 +03:00
|
|
|
hlslGrammar.cpp
|
|
|
|
hlslParseables.cpp)
|
2016-03-13 06:11:22 +03:00
|
|
|
|
2017-04-29 11:57:36 +03:00
|
|
|
set(HEADERS
|
2016-10-20 22:07:10 +03:00
|
|
|
hlslAttributes.h
|
2016-03-13 06:11:22 +03:00
|
|
|
hlslParseHelper.h
|
|
|
|
hlslTokens.h
|
|
|
|
hlslScanContext.h
|
2016-05-04 08:17:20 +03:00
|
|
|
hlslOpMap.h
|
2016-05-04 07:49:24 +03:00
|
|
|
hlslTokenStream.h
|
2016-05-20 22:45:20 +03:00
|
|
|
hlslGrammar.h
|
|
|
|
hlslParseables.h)
|
2016-03-13 06:11:22 +03:00
|
|
|
|
|
|
|
add_library(HLSL STATIC ${SOURCES} ${HEADERS})
|
2017-04-29 11:57:36 +03:00
|
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl POSITION_INDEPENDENT_CODE ON)
|
2016-03-13 06:11:22 +03:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
source_group("Source" FILES ${SOURCES} ${HEADERS})
|
|
|
|
endif(WIN32)
|
|
|
|
|
|
|
|
install(TARGETS HLSL
|
2017-04-29 11:57:36 +03:00
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|