1 2list(APPEND TEXTFILES 3 textfiles/ExtraLargeNormal.INI 4 textfiles/LargeFontsNormal.INI 5 textfiles/NormalNormal.INI) 6 7file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/textfiles) 8foreach(_file ${TEXTFILES}) 9 get_filename_component(_file_name ${_file} NAME_WE) 10 get_filename_component(_subdir ${_file} DIRECTORY) 11 file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_subdir}) 12 set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/${_subdir}/${_file_name}_utf16.INI) 13 add_custom_command(OUTPUT ${_converted_file} 14 COMMAND native-utf16le ${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${_converted_file} 15 DEPENDS native-utf16le ${CMAKE_CURRENT_SOURCE_DIR}/${_file}) 16 list(APPEND _converted_files ${_converted_file}) 17endforeach() 18 19set_source_files_properties(mizu.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}") 20add_library(mizu.msstyles MODULE mizu.rc) 21set_module_type(mizu.msstyles module) 22set_target_properties(mizu.msstyles PROPERTIES SUFFIX "") 23add_cd_file(TARGET mizu.msstyles DESTINATION reactos/Resources/Themes/Mizu FOR all) 24