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    utf16le_convert(${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${_converted_file})
18    list(APPEND _converted_files ${_converted_file})
19endforeach()
20
21set_source_files_properties(lautus.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
22add_library(lautus.msstyles MODULE lautus.rc)
23set_module_type(lautus.msstyles module)
24set_target_properties(lautus.msstyles PROPERTIES SUFFIX "")
25add_cd_file(TARGET lautus.msstyles DESTINATION reactos/Resources/Themes/Lautus FOR all)
26