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