CMake: Collapse into a single library all the libraries under the glslang directory...
[platform/upstream/glslang.git] / glslang / OSDependent / Windows / CMakeLists.txt
index b7ca878..b378be1 100644 (file)
@@ -2,7 +2,13 @@ cmake_minimum_required(VERSION 2.8)
 \r
 include_directories(. ../../../OGLCompilersDLL)\r
 \r
-add_library(OSDependent STATIC ossource.cpp osinclude.h)\r
+set(SOURCES ossource.cpp osinclude.h)\r
+\r
+add_library(OSDependent STATIC ${SOURCES})\r
+\r
+if(WIN32)\r
+    source_group("Source" FILES ${SOURCES})\r
+endif(WIN32)\r
 \r
 install(TARGETS OSDependent \r
         ARCHIVE DESTINATION lib)\r