[CMAKE]: Forgot to delete this guy.
[reactos.git] / include / reactos / mc / CMakeLists.txt
1 MACRO (MACRO_ADD_MESSAGE_HEADERS)
2
3 FOREACH(_in_FILE ${ARGN})
4
5 get_filename_component(FILE ${_in_FILE} NAME_WE)
6 add_custom_command(
7 OUTPUT ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h
8 COMMAND ${MINGW_PREFIX}windmc ${REACTOS_SOURCE_DIR}/include/reactos/mc/${FILE}.mc -r ${REACTOS_BINARY_DIR}/include/reactos
9 )
10 set_source_files_properties(
11 ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc
12 PROPERTIES GENERATED TRUE
13 )
14 add_custom_target(${FILE} ALL DEPENDS ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc)
15
16 ENDFOREACH(_in_FILE ${ARGN})
17
18 ENDMACRO (MACRO_ADD_MESSAGE_HEADERS)
19
20 file(GLOB_RECURSE SOURCE "*.mc")
21 MACRO_ADD_MESSAGE_HEADERS(${SOURCE})