meson: generate cmake config files
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 11 Jul 2019 02:58:53 +0000 (11:58 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 18 Jul 2019 11:04:28 +0000 (20:04 +0900)
cmake config files needed by cmake's find_package to able to find rlottie.

meson.build

index 223b7c5..7bab4a3 100644 (file)
@@ -52,3 +52,22 @@ if get_option('test') == true
    subdir('test')
 endif
 
+
+
+cmake = import('cmake')
+cmake.write_basic_package_version_file(
+    version: meson.project_version(),
+    name: 'rlottie',
+)
+
+cmakeconf = configuration_data()
+cmakeconf.set('VERSION', meson.project_version())
+
+cmake.configure_package_config_file(
+    input: meson.current_source_dir() + '/cmake/rlottieConfig.cmake.in',
+    name: 'rlottie',
+    configuration: cmakeconf,
+)
+
+
+