2017-02-19 20:40:45 +00:00
|
|
|
|
|
|
|
list(APPEND TEXTFILES
|
|
|
|
textfiles/ExtraLargeNormal.INI
|
|
|
|
textfiles/LargeFontsNormal.INI
|
|
|
|
textfiles/NormalNormal.INI)
|
|
|
|
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/textfiles)
|
|
|
|
foreach(_file ${TEXTFILES})
|
|
|
|
get_filename_component(_file_name ${_file} NAME_WE)
|
|
|
|
string(REPLACE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} _converted_file "${_file}")
|
|
|
|
string(REPLACE ${_file_name} "${_file_name}_utf16" _converted_file ${_converted_file})
|
|
|
|
set(_file ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
|
|
|
|
set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/${_converted_file})
|
2024-05-08 09:34:00 +00:00
|
|
|
utf16le_convert(${_file} ${_converted_file})
|
2017-02-19 20:40:45 +00:00
|
|
|
list(APPEND _converted_files ${_converted_file})
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
set_source_files_properties(blackshade.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(blackshade.msstyles MODULE blackshade.rc)
|
2017-02-19 20:40:45 +00:00
|
|
|
set_module_type(blackshade.msstyles module)
|
|
|
|
set_target_properties(blackshade.msstyles PROPERTIES SUFFIX "")
|