Lines 6-16
Link Here
|
6 |
set(DIRECTORY_WATCHER_LINK_LIBS "") |
6 |
set(DIRECTORY_WATCHER_LINK_LIBS "") |
7 |
|
7 |
|
8 |
if(APPLE) |
8 |
if(APPLE) |
9 |
check_include_files("CoreServices/CoreServices.h" HAVE_CORESERVICES) |
9 |
list(APPEND DIRECTORY_WATCHER_SOURCES default/DirectoryWatcher-not-implemented.cpp) |
10 |
if(HAVE_CORESERVICES) |
|
|
11 |
list(APPEND DIRECTORY_WATCHER_SOURCES mac/DirectoryWatcher-mac.cpp) |
12 |
set(DIRECTORY_WATCHER_LINK_LIBS "-framework CoreServices") |
13 |
endif() |
14 |
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") |
10 |
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") |
15 |
check_include_files("sys/inotify.h" HAVE_INOTIFY) |
11 |
check_include_files("sys/inotify.h" HAVE_INOTIFY) |
16 |
if(HAVE_INOTIFY) |
12 |
if(HAVE_INOTIFY) |