subdir('test')
endif
-#FIXME: Temporarily comment out this code
-# this code needed cmake version check
-#if host_machine.system() != 'windows'
-# cmake_bin = find_program('cmake', required: false)
-# if cmake_bin.found()
-# 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,
-# )
-# endif
-#endif
+
+if get_option('cmake') == true and host_machine.system() != 'windows'
+ cmake_bin = find_program('cmake', required: false)
+ if cmake_bin.found()
+ 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,
+ )
+ endif
+endif
summary = '''