set( catalog "FDOMessage" ) # NOTE: Not using ${catalog} because the Linux message catalog generation has # inconsistent naming. The catalog expected is "FDOMessage", but the header # expected is "FdoMessage". Hooray for consistency! set( messagefile "${CMAKE_CURRENT_BINARY_DIR}/../../Inc/FdoMessage.h" ) if (NOT WIN32) file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../Inc ) add_linux_message_catalog(${catalog} ${messagefile} "FDO") install( FILES ${messagefile} DESTINATION ${FDO_INC_DIR_NAME} COMPONENT ${FDO_COMPONENT} ) else (NOT WIN32) generate_windows_dll_rc("MessageStatic" "FDO Resource Only Dynamic Link Library" "FDO Message Library Component" "${catalog}" "${catalog}.dll" FALSE) add_windows_message_target_with_static(${catalog} ${catalog} MessageStatic ${messagefile} "../../Inc" ${catalog}) install( FILES ${messagefile} DESTINATION ${FDO_INC_DIR_NAME} COMPONENT ${FDO_COMPONENT} ) endif (NOT WIN32)