From 4afbc60beb72cd6cc4bc2c617036bbed8cf5c748 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 25 Dec 2017 21:24:15 -0800 Subject: Added HLSL2GLSLConverter project --- CMakeLists.txt | 5 ++++- HLSL2GLSLConverter/CMakeLists.txt | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 HLSL2GLSLConverter/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 6356812..cb4e4e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,4 +2,7 @@ cmake_minimum_required (VERSION 3.6) add_subdirectory(External) add_subdirectory(RenderScript) -add_subdirectory(TextureLoader) \ No newline at end of file +add_subdirectory(TextureLoader) +if(PLATFORM_WIN32) + add_subdirectory(HLSL2GLSLConverter) +endif() \ No newline at end of file diff --git a/HLSL2GLSLConverter/CMakeLists.txt b/HLSL2GLSLConverter/CMakeLists.txt new file mode 100644 index 0000000..936bb0e --- /dev/null +++ b/HLSL2GLSLConverter/CMakeLists.txt @@ -0,0 +1,36 @@ +cmake_minimum_required (VERSION 3.6) + +project(HLSL2GLSLConverter CXX) + +set(SOURCE + src/HLSL2GLSLConverterApp.cpp +) + +if(PLATFORM_WIN32) + add_executable(HLSL2GLSLConverter ${SOURCE}) +else() + message(FATAL_ERROR "Unsupported platform") +endif() + +set_common_target_properties(HLSL2GLSLConverter) + +target_include_directories(HLSL2GLSLConverter PRIVATE + ../../DiligentCore/Graphics/HLSL2GLSLConverterLib/include +) + +target_compile_definitions(HLSL2GLSLConverter PRIVATE UNICODE) + +target_link_libraries(HLSL2GLSLConverter +PRIVATE + BuildSettings + TargetPlatform + GraphicsTools + HLSL2GLSLConverterLib + GraphicsEngineOpenGL-static +) + +source_group("source" FILES ${SOURCE}) + +set_target_properties(HLSL2GLSLConverter PROPERTIES + FOLDER Tools +) -- cgit v1.2.3