1file(GLOB_RECURSE modern_rc_deps ${CMAKE_CURRENT_BINARY_DIR}/bitmaps/* ${CMAKE_CURRENT_BINARY_DIR}/lang/* ${CMAKE_CURRENT_BINARY_DIR}/textfiles/*) 2add_rc_deps(modern.rc ${modern_rc_deps}) 3 4list(APPEND TEXTFILES 5 textfiles/Light/ExtraLargeLight.INI 6 textfiles/Light/LargeFontsLight.INI 7 textfiles/Light/RegularLight.INI 8 textfiles/Dark/ExtraLargeDark.INI 9 textfiles/Dark/LargeFontsDark.INI 10 textfiles/Dark/RegularDark.INI) 11 12file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/textfiles) 13foreach(_file ${TEXTFILES}) 14 get_filename_component(_file_name ${_file} NAME_WE) 15 string(REPLACE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} _converted_file "${_file}") 16 string(REPLACE ${_file_name} "${_file_name}_utf16" _converted_file ${_converted_file}) 17 set(_file ${CMAKE_CURRENT_SOURCE_DIR}/${_file}) 18 set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/${_converted_file}) 19 add_custom_command(OUTPUT ${_converted_file} 20 COMMAND native-utf16le ${_file} ${_converted_file} 21 DEPENDS native-utf16le ${_file}) 22 list(APPEND _converted_files ${_converted_file}) 23endforeach() 24 25set_source_files_properties(modern.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}") 26add_library(modern.msstyles MODULE modern.rc) 27set_module_type(modern.msstyles module) 28set_target_properties(modern.msstyles PROPERTIES SUFFIX "") 29add_cd_file(TARGET modern.msstyles DESTINATION reactos/Resources/Themes/Modern FOR all) 30