Mercurial > minori
comparison CMakeLists.txt @ 402:d859306e2db4 default tip
filesystem: actually check for inotify instead of blindly assuming it exists
| author | Paper <paper@tflc.us> |
|---|---|
| date | Fri, 07 Nov 2025 18:36:18 -0500 |
| parents | 6d37a998cf91 |
| children |
comparison
equal
deleted
inserted
replaced
| 401:2f89797b6a44 | 402:d859306e2db4 |
|---|---|
| 272 src/sys/win32/dark_theme.cc | 272 src/sys/win32/dark_theme.cc |
| 273 ${CMAKE_CURRENT_BINARY_DIR}/rc/version.rc | 273 ${CMAKE_CURRENT_BINARY_DIR}/rc/version.rc |
| 274 ) | 274 ) |
| 275 list(APPEND DEFINES WIN32) | 275 list(APPEND DEFINES WIN32) |
| 276 else() | 276 else() |
| 277 include(CheckSymbolExists) | |
| 278 | |
| 277 find_package(PkgConfig) | 279 find_package(PkgConfig) |
| 278 if (PKG_CONFIG_FOUND) | 280 if (PKG_CONFIG_FOUND) |
| 279 pkg_check_modules(GLIB gio-2.0 glib-2.0) | 281 pkg_check_modules(GLIB gio-2.0 glib-2.0) |
| 280 if (GLIB_FOUND) | 282 if (GLIB_FOUND) |
| 281 list(APPEND SRC_FILES src/sys/glib/dark_theme.cc) | 283 list(APPEND SRC_FILES src/sys/glib/dark_theme.cc) |
| 290 list(APPEND INCLUDE ${XCB_INCLUDE_DIRS}) | 292 list(APPEND INCLUDE ${XCB_INCLUDE_DIRS}) |
| 291 list(APPEND LIBRARIES ${XCB_LINK_LIBRARIES}) | 293 list(APPEND LIBRARIES ${XCB_LINK_LIBRARIES}) |
| 292 list(APPEND DEFINES HAVE_XCB) | 294 list(APPEND DEFINES HAVE_XCB) |
| 293 endif() | 295 endif() |
| 294 endif() | 296 endif() |
| 297 | |
| 298 check_symbol_exists(inotify_init1 "sys/inotify.h" HAVE_INOTIFY_INIT1) | |
| 299 if(HAVE_INOTIFY_INIT1) | |
| 300 list(APPEND DEFINES HAVE_INOTIFY_INIT1) | |
| 301 endif() | |
| 302 check_symbol_exists(inotify_init "sys/inotify.h" HAVE_INOTIFY) | |
| 303 if(HAVE_INOTIFY) | |
| 304 list(APPEND DEFINES HAVE_INOTIFY) | |
| 305 endif() | |
| 295 endif() | 306 endif() |
| 296 | 307 |
| 297 ########################################################################### | 308 ########################################################################### |
| 298 | 309 |
| 299 add_executable(minori WIN32 MACOSX_BUNDLE ${SRC_FILES}) | 310 add_executable(minori WIN32 MACOSX_BUNDLE ${SRC_FILES}) |
