[project] CMake project for macOS file watcher

This commit is contained in:
Roman Shevchenko
2018-07-24 21:32:58 +02:00
parent 3aa19b973e
commit a674f9c24a
2 changed files with 15 additions and 0 deletions

2
native/fsNotifier/mac/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/.idea/
/cmake-build-*/

View File

@@ -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})