158b2a9dc6a7b3af7aef35c660da4ddb0a19bbe4
[platform/upstream/efl.git] / cmakeconfig / meson.build
1
2 cmake_src = [
3   'Ecore',
4   'EcoreCxx',
5   'Edje',
6   'Eet',
7   'EetCxx',
8   'Eeze',
9   'Efl',
10   'Efreet',
11   'Eina',
12   'EinaCxx',
13   'Eio',
14   'Eldbus',
15   'Elementary',
16   'Elua',
17   'Emile',
18   'Emotion',
19   'Eo',
20   'EoCxx',
21   'Eolian',
22   'EolianCxx',
23   'EthumbClient',
24   'Ethumb',
25   'Evas',
26   'EvasCxx',
27 ]
28
29 cmake_version_src = [
30   'Efl',
31   'Elementary',
32 ]
33
34 foreach cmake_file : cmake_src
35   configure_file(
36     input: cmake_file+'Config.cmake.in',
37     output: cmake_file+'Config.cmake',
38     install_dir: join_paths(dir_lib, 'cmake', cmake_file),
39     copy: true,
40   )
41 endforeach
42
43 conf = configuration_data()
44
45 conf.set('VERSION', meson.version())
46
47 foreach cmake_version_file : cmake_version_src
48   configure_file(
49     input: cmake_version_file+'ConfigVersion.cmake.in',
50     output: cmake_version_file+'ConfigVersion.cmake',
51     install_dir: join_paths(dir_lib, 'cmake', cmake_version_file),
52     configuration : conf,
53   )
54 endforeach
55
56 configure_file(
57   input: 'EolianHelper.cmake.in',
58   output: 'EolianHelper.cmake',
59   install_dir: join_paths(dir_lib, 'cmake', 'Eolian'),
60   copy: true
61 )