]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/orte/meson.build
meson build: Properly handle generation of orte_config.h
[orte.git] / orte / include / orte / meson.build
1 install_headers(
2   'basic_types.h',
3   'cdr.h',
4   'defines_api.h',
5   'protos_api.h',
6   'typedefs_api.h',
7   'typedefs_defines_rtps.h',
8   subdir: 'orte',
9 )
10
11 if (host_machine.system() == 'windows')
12   orte_config_src = 'orte_config_omk_win32.h'
13 elif (host_machine.system() == 'linux')
14   orte_config_src = 'orte_config_omk_linux.h'
15 else
16   orte_config_src = 'orte_config_omk_linux.h'
17 endif
18
19 orte_config_h = custom_target(
20   'orte_config.h',
21   input : orte_config_src,
22   output : 'orte_config.h',
23   command : ['cp', '@INPUT@', '@OUTPUT@'],
24   install: true,
25   install_dir: 'include/orte',
26 )