2016-06-26 05:06:20 +00:00
|
|
|
set(SOURCES InitializeDll.cpp InitializeDll.h)
|
|
|
|
|
|
|
|
add_library(OGLCompiler STATIC ${SOURCES})
|
|
|
|
set_property(TARGET OGLCompiler PROPERTY FOLDER glslang)
|
2018-06-02 07:26:43 +00:00
|
|
|
set_property(TARGET OGLCompiler PROPERTY POSITION_INDEPENDENT_CODE ON)
|
2016-06-26 05:06:20 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
source_group("Source" FILES ${SOURCES})
|
|
|
|
endif(WIN32)
|
|
|
|
|
2018-06-02 07:26:43 +00:00
|
|
|
if(ENABLE_GLSLANG_INSTALL)
|
2020-03-02 15:42:00 +00:00
|
|
|
install(TARGETS OGLCompiler EXPORT OGLCompilerTargets
|
2018-06-02 07:26:43 +00:00
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
2020-03-02 15:42:00 +00:00
|
|
|
install(EXPORT OGLCompilerTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
2018-06-02 07:26:43 +00:00
|
|
|
endif(ENABLE_GLSLANG_INSTALL)
|