mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[project] CMake project for macOS file watcher
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
/.idea/
|
||||
/cmake-build-*/
|
||||
@@ -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