Mercurial > minori
diff dep/animia/CMakeLists.txt @ 162:61b76c7b656a
dep/animia: add os x launchservices method
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 17 Nov 2023 16:49:57 -0500 |
parents | 80d6b28eb29f |
children | 44c5e6dd9488 |
line wrap: on
line diff
--- a/dep/animia/CMakeLists.txt Fri Nov 17 13:09:20 2023 -0500 +++ b/dep/animia/CMakeLists.txt Fri Nov 17 16:49:57 2023 -0500 @@ -10,6 +10,8 @@ src/win.cc ) +include(CheckLanguage) + set(LIBRARIES) set(INCLUDE_DIRS) set(DEFINES) @@ -20,6 +22,14 @@ # xnu stuff src/fd/xnu.cc ) + + include(CheckIncludeFile) + check_include_file("CoreFoundation/CoreFoundation.h" HAVE_COREFOUNDATION) + if (HAVE_COREFOUNDATION) + list(APPEND DEFINES HAVE_COREFOUNDATION) + list(APPEND SRC_FILES src/util/osx.cc) + endif() + check_language(OBJCXX) if(CMAKE_OBJCXX_COMPILER) enable_language(OBJCXX)