Mercurial > minori
comparison dep/animia/CMakeLists.txt @ 163:44c5e6dd9488
dep/animia/osx: move GetProcessName to util/osx so we can use it in quartz
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 18 Nov 2023 00:47:40 -0500 |
parents | 61b76c7b656a |
children | 54c5d80a737e |
comparison
equal
deleted
inserted
replaced
162:61b76c7b656a | 163:44c5e6dd9488 |
---|---|
19 if(APPLE) | 19 if(APPLE) |
20 list(APPEND DEFINES MACOSX) | 20 list(APPEND DEFINES MACOSX) |
21 list(APPEND SRC_FILES | 21 list(APPEND SRC_FILES |
22 # xnu stuff | 22 # xnu stuff |
23 src/fd/xnu.cc | 23 src/fd/xnu.cc |
24 src/util/osx.cc | |
24 ) | 25 ) |
25 | 26 |
26 include(CheckIncludeFile) | 27 include(CheckIncludeFile) |
27 check_include_file("CoreFoundation/CoreFoundation.h" HAVE_COREFOUNDATION) | 28 check_include_file("CoreFoundation/CoreFoundation.h" HAVE_COREFOUNDATION) |
29 # If you're building on OS X, you most likely do have this file, but we | |
30 # check anyway. | |
28 if (HAVE_COREFOUNDATION) | 31 if (HAVE_COREFOUNDATION) |
29 list(APPEND DEFINES HAVE_COREFOUNDATION) | 32 list(APPEND DEFINES HAVE_COREFOUNDATION) |
30 list(APPEND SRC_FILES src/util/osx.cc) | |
31 endif() | 33 endif() |
32 | 34 |
33 check_language(OBJCXX) | 35 check_language(OBJCXX) |
34 if(CMAKE_OBJCXX_COMPILER) | 36 if(CMAKE_OBJCXX_COMPILER) |
35 enable_language(OBJCXX) | 37 enable_language(OBJCXX) |