diff options
| -rw-r--r-- | CMakeLists.txt | 5 | ||||
| -rw-r--r-- | HLSL2GLSLConverter/CMakeLists.txt | 36 |
2 files changed, 40 insertions, 1 deletions
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 +) |
