mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
[project] CMake project for macOS file watcher
This commit is contained in:
2
native/fsNotifier/mac/.gitignore
vendored
Normal file
2
native/fsNotifier/mac/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/.idea/
|
||||||
|
/cmake-build-*/
|
||||||
13
native/fsNotifier/mac/CMakeLists.txt
Normal file
13
native/fsNotifier/mac/CMakeLists.txt
Normal 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})
|
||||||
Reference in New Issue
Block a user