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