blob: 98dfad7c9637025ade6ad0bf868dc339eb078ae6 [file] [log] [blame]
John Kesseniche01a9bc2016-03-12 20:11:22 -07001set(SOURCES
steve-lunarg1868b142016-10-20 13:07:10 -06002 hlslAttributes.cpp
John Kesseniche01a9bc2016-03-12 20:11:22 -07003 hlslParseHelper.cpp
4 hlslScanContext.cpp
John Kessenich34fb0362016-05-03 23:17:20 -06005 hlslOpMap.cpp
John Kessenich9c86c6a2016-05-03 22:49:24 -06006 hlslTokenStream.cpp
LoopDawg0ae28ea2016-05-20 13:45:20 -06007 hlslGrammar.cpp
8 hlslParseables.cpp)
John Kesseniche01a9bc2016-03-12 20:11:22 -07009
David Seifert22afc382017-04-29 10:57:36 +020010set(HEADERS
steve-lunarg1868b142016-10-20 13:07:10 -060011 hlslAttributes.h
John Kesseniche01a9bc2016-03-12 20:11:22 -070012 hlslParseHelper.h
13 hlslTokens.h
14 hlslScanContext.h
John Kessenich34fb0362016-05-03 23:17:20 -060015 hlslOpMap.h
John Kessenich9c86c6a2016-05-03 22:49:24 -060016 hlslTokenStream.h
LoopDawg0ae28ea2016-05-20 13:45:20 -060017 hlslGrammar.h
18 hlslParseables.h)
John Kesseniche01a9bc2016-03-12 20:11:22 -070019
20add_library(HLSL STATIC ${SOURCES} ${HEADERS})
Rohith Chandran62060912017-07-04 10:53:45 -040021set_property(TARGET HLSL PROPERTY FOLDER hlsl)
22set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
John Kesseniche01a9bc2016-03-12 20:11:22 -070023
24if(WIN32)
25 source_group("Source" FILES ${SOURCES} ${HEADERS})
26endif(WIN32)
27
d3x0r9c6ea322017-07-04 05:59:34 -070028if(ENABLE_GLSLANG_INSTALL)
29 install(TARGETS HLSL
30 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
31endif(ENABLE_GLSLANG_INSTALL)