Mercurial > minori
comparison dep/animia/CMakeLists.txt @ 182:c413e475f496
dep/animia: various stylistic changes
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 13:19:54 -0500 |
parents | e44b7c428d7c |
children | 649786bae914 |
comparison
equal
deleted
inserted
replaced
181:d26cd2c00270 | 182:c413e475f496 |
---|---|
28 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 | 29 # If you're building on OS X, you most likely do have this file, but we |
30 # check anyway. | 30 # check anyway. |
31 if (HAVE_COREFOUNDATION) | 31 if (HAVE_COREFOUNDATION) |
32 list(APPEND DEFINES HAVE_COREFOUNDATION) | 32 list(APPEND DEFINES HAVE_COREFOUNDATION) |
33 | |
34 find_library(FOUNDATION_LIBRARY Foundation) | |
35 list(APPEND LIBRARIES ${FOUNDATION_LIBRARY}) | |
36 else() | |
37 message(STATUS "You don't have Core Foundation. How? What kind of voodoo magic did you do to cause this?") | |
38 message(WARNING "LaunchServices support will not be compiled.") | |
33 endif() | 39 endif() |
34 | 40 |
35 check_language(OBJCXX) | 41 check_language(OBJCXX) |
36 if(CMAKE_OBJCXX_COMPILER) | 42 if(CMAKE_OBJCXX_COMPILER) |
37 enable_language(OBJCXX) | 43 enable_language(OBJCXX) |
38 list(APPEND SRC_FILES | 44 list(APPEND SRC_FILES |
39 src/win/quartz.mm | 45 src/win/quartz.mm |
40 ) | 46 ) |
41 find_library(FOUNDATION_LIBRARY Foundation) | 47 |
48 # we likely already have Foundation at this point. | |
42 find_library(COREGRAPHICS_LIBRARY CoreGraphics) | 49 find_library(COREGRAPHICS_LIBRARY CoreGraphics) |
43 find_library(APPKIT_LIBRARY AppKit) | 50 find_library(APPKIT_LIBRARY AppKit) |
44 list(APPEND LIBRARIES ${FOUNDATION_LIBRARY} ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY}) | 51 list(APPEND LIBRARIES ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY}) |
45 else() # NOT CMAKE_OBJCXX_COMPILER | 52 else() # NOT CMAKE_OBJCXX_COMPILER |
46 message(WARNING "An Objective-C++ compiler couldn't be found! Window enumeration support will not be compiled.") | 53 message(WARNING "An Objective-C++ compiler couldn't be found! Window enumeration support will not be compiled.") |
47 endif() # CMAKE_OBJCXX_COMPILER | 54 endif() # CMAKE_OBJCXX_COMPILER |
48 elseif(WIN32) | 55 elseif(WIN32) |
49 list(APPEND DEFINES WIN32) | 56 list(APPEND DEFINES WIN32) |