Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
161:71752dcbb49f | 162:61b76c7b656a |
---|---|
8 src/strategist.cc | 8 src/strategist.cc |
9 src/fd.cc | 9 src/fd.cc |
10 src/win.cc | 10 src/win.cc |
11 ) | 11 ) |
12 | 12 |
13 include(CheckLanguage) | |
14 | |
13 set(LIBRARIES) | 15 set(LIBRARIES) |
14 set(INCLUDE_DIRS) | 16 set(INCLUDE_DIRS) |
15 set(DEFINES) | 17 set(DEFINES) |
16 | 18 |
17 if(APPLE) | 19 if(APPLE) |
18 list(APPEND DEFINES MACOSX) | 20 list(APPEND DEFINES MACOSX) |
19 list(APPEND SRC_FILES | 21 list(APPEND SRC_FILES |
20 # xnu stuff | 22 # xnu stuff |
21 src/fd/xnu.cc | 23 src/fd/xnu.cc |
22 ) | 24 ) |
25 | |
26 include(CheckIncludeFile) | |
27 check_include_file("CoreFoundation/CoreFoundation.h" HAVE_COREFOUNDATION) | |
28 if (HAVE_COREFOUNDATION) | |
29 list(APPEND DEFINES HAVE_COREFOUNDATION) | |
30 list(APPEND SRC_FILES src/util/osx.cc) | |
31 endif() | |
32 | |
23 check_language(OBJCXX) | 33 check_language(OBJCXX) |
24 if(CMAKE_OBJCXX_COMPILER) | 34 if(CMAKE_OBJCXX_COMPILER) |
25 enable_language(OBJCXX) | 35 enable_language(OBJCXX) |
26 list(APPEND SRC_FILES | 36 list(APPEND SRC_FILES |
27 src/win/quartz.mm | 37 src/win/quartz.mm |