1
2list(APPEND TEXTFILES
3    textfiles/ExtraLargeReactOS.INI
4    textfiles/LargeFontsReactOS.INI
5    textfiles/NormalReactOS.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    utf16le_convert(${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${_converted_file})
14    list(APPEND _converted_files ${_converted_file})
15endforeach()
16
17set_source_files_properties(lunar.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
18add_library(lunar.msstyles MODULE lunar.rc)
19set_module_type(lunar.msstyles module)
20set_target_properties(lunar.msstyles PROPERTIES SUFFIX "")
21add_cd_file(TARGET lunar.msstyles DESTINATION reactos/Resources/Themes/Lunar FOR all)
22