-cmake_minimum_required(VERSION 2.8)
-
-include_directories(.)
-if(WIN32)
- include_directories(${include_directories} ../glslang/OSDependent/Windows)
-elseif(UNIX)
- include_directories(${include_directories} ../glslang/OSDependent/Linux)
-else(WIN32)
- message("unkown platform")
-endif(WIN32)
-
-add_executable(glslangValidator StandAlone.cpp)
-
-set(LIBRARIES
- glslang
- GenericCodeGen
- OSDependent
- Preprocessor
- OGLCompiler)
-
-if(WIN32)
- set(LIBRARIES ${LIBRARIES} psapi)
-elseif(UNIX)
- set(LIBRARIES ${LIBRARIES} pthread)
-endif(WIN32)
-
-target_link_libraries(glslangValidator ${LIBRARIES})
-
-install(TARGETS glslangValidator
- RUNTIME DESTINATION bin)
+cmake_minimum_required(VERSION 2.8)\r
+\r
+include_directories(.)\r
+if(WIN32)\r
+ include_directories(${include_directories} ../glslang/OSDependent/Windows)\r
+elseif(UNIX)\r
+ include_directories(${include_directories} ../glslang/OSDependent/Linux)\r
+else(WIN32)\r
+ message("unkown platform")\r
+endif(WIN32)\r
+\r
+set(SOURCES StandAlone.cpp)\r
+\r
+add_executable(glslangValidator ${SOURCES})\r
+\r
+set(LIBRARIES\r
+ glslang\r
+ OGLCompiler\r
+ OSDependent)\r
+\r
+if(WIN32)\r
+ set(LIBRARIES ${LIBRARIES} psapi)\r
+elseif(UNIX)\r
+ set(LIBRARIES ${LIBRARIES} pthread)\r
+endif(WIN32)\r
+\r
+target_link_libraries(glslangValidator ${LIBRARIES})\r
+\r
+if(WIN32)\r
+ source_group("Source" FILES ${SOURCES})\r
+endif(WIN32)\r
+\r
+install(TARGETS glslangValidator\r
+ RUNTIME DESTINATION bin)\r