From a674f9c24a9e4cc2d1024e41d7453988428d28fa Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 24 Jul 2018 21:32:58 +0200 Subject: [PATCH] [project] CMake project for macOS file watcher --- native/fsNotifier/mac/.gitignore | 2 ++ native/fsNotifier/mac/CMakeLists.txt | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 native/fsNotifier/mac/.gitignore create mode 100644 native/fsNotifier/mac/CMakeLists.txt diff --git a/native/fsNotifier/mac/.gitignore b/native/fsNotifier/mac/.gitignore new file mode 100644 index 000000000000..451a0c38a505 --- /dev/null +++ b/native/fsNotifier/mac/.gitignore @@ -0,0 +1,2 @@ +/.idea/ +/cmake-build-*/ \ No newline at end of file diff --git a/native/fsNotifier/mac/CMakeLists.txt b/native/fsNotifier/mac/CMakeLists.txt new file mode 100644 index 000000000000..bd14b2837579 --- /dev/null +++ b/native/fsNotifier/mac/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.1) +project(fsnotifier C) + +if(NOT APPLE) + message(FATAL_ERROR "macOS only.") +endif() + +set(CMAKE_C_STANDARD 11) + +find_library(CORE_SERVICES CoreServices) + +add_executable(fsnotifier fsnotifier.c) +target_link_libraries(fsnotifier ${CORE_SERVICES}) \ No newline at end of file