mirror of
https://github.com/reactos/reactos.git
synced 2024-08-31 07:38:48 +00:00
24 lines
1.1 KiB
CMake
24 lines
1.1 KiB
CMake
|
|
list(APPEND TEXTFILES
|
|
textfiles/ExtraLargeReactOS.INI
|
|
textfiles/LargeFontsReactOS.INI
|
|
textfiles/NormalReactOS.INI)
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/textfiles)
|
|
foreach(_file ${TEXTFILES})
|
|
get_filename_component(_file_name ${_file} NAME_WE)
|
|
get_filename_component(_subdir ${_file} DIRECTORY)
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_subdir})
|
|
set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/${_subdir}/${_file_name}_utf16.INI)
|
|
add_custom_command(OUTPUT ${_converted_file}
|
|
COMMAND native-utf16le ${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${_converted_file}
|
|
DEPENDS native-utf16le ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
|
|
list(APPEND _converted_files ${_converted_file})
|
|
endforeach()
|
|
|
|
set_source_files_properties(lunar.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
|
|
add_library(lunar.msstyles MODULE lunar.rc)
|
|
set_module_type(lunar.msstyles module)
|
|
set_target_properties(lunar.msstyles PROPERTIES SUFFIX "")
|
|
add_cd_file(TARGET lunar.msstyles DESTINATION reactos/Resources/Themes/Lunar FOR all)
|