diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 04:02:36 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 04:02:36 +0000 |
| commit | 2d81c45170588995c346bf324b2154c4ef59efb3 (patch) | |
| tree | 326b031c2372e00090536348fe5cc6275548ce36 /TextureLoader | |
| parent | Added UWP to cmake (diff) | |
| download | DiligentTools-2d81c45170588995c346bf324b2154c4ef59efb3.tar.gz DiligentTools-2d81c45170588995c346bf324b2154c4ef59efb3.zip | |
Optimized CMake files with set_common_target_properties()
Diffstat (limited to 'TextureLoader')
| -rw-r--r-- | TextureLoader/CMakeLists.txt | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/TextureLoader/CMakeLists.txt b/TextureLoader/CMakeLists.txt index 979c1de..a972d25 100644 --- a/TextureLoader/CMakeLists.txt +++ b/TextureLoader/CMakeLists.txt @@ -22,6 +22,7 @@ set(SOURCE ) add_library(TextureLoader STATIC ${SOURCE} ${INCLUDE}) +set_common_target_properties(TextureLoader) target_include_directories(TextureLoader PUBLIC @@ -34,16 +35,6 @@ source_group("include" FILES ${INCLUDE}) target_link_libraries(TextureLoader PRIVATE BuildSettings Common PlatformInterface GraphicsEngine GraphicsTools LibJpeg LibPng LibTiff Lua ZLib) -if(MSVC) - # Enable link-time code generation for release builds (I was not able to - # find any way to set these settings through interface library BuildSettings) - set_target_properties(TextureLoader PROPERTIES - STATIC_LIBRARY_FLAGS_RELEASE /LTCG - STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG - STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG - ) -endif() - set_target_properties(TextureLoader PROPERTIES FOLDER Tools )
\ No newline at end of file |
