Mercurial > minori
comparison dep/animia/CMakeLists.txt @ 189:649786bae914
*: etc. code cleanup
I've removed most macros and stuff
dep/animia: [UNTESTED] use raw C++ instead of Objective-C++
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 06 Dec 2023 19:42:33 -0500 |
| parents | c413e475f496 |
| children | 0fc126d52de4 |
comparison
equal
deleted
inserted
replaced
| 188:168382a89b21 | 189:649786bae914 |
|---|---|
| 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 list(APPEND SRC_FILES src/win/quartz.cc) | |
| 33 | 34 |
| 34 find_library(FOUNDATION_LIBRARY Foundation) | 35 find_library(FOUNDATION_LIBRARY Foundation) |
| 35 list(APPEND LIBRARIES ${FOUNDATION_LIBRARY}) | 36 find_library(COREGRAPHICS_LIBRARY CoreGraphics) |
| 37 find_library(APPKIT_LIBRARY AppKit) | |
| 38 list(APPEND LIBRARIES ${FOUNDATION_LIBRARY} ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY}) | |
| 36 else() | 39 else() |
| 37 message(STATUS "You don't have Core Foundation. How? What kind of voodoo magic did you do to cause this?") | 40 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.") | 41 message(WARNING "LaunchServices support will not be compiled.") |
| 39 endif() | 42 endif() |
| 40 | |
| 41 check_language(OBJCXX) | |
| 42 if(CMAKE_OBJCXX_COMPILER) | |
| 43 enable_language(OBJCXX) | |
| 44 list(APPEND SRC_FILES | |
| 45 src/win/quartz.mm | |
| 46 ) | |
| 47 | |
| 48 # we likely already have Foundation at this point. | |
| 49 find_library(COREGRAPHICS_LIBRARY CoreGraphics) | |
| 50 find_library(APPKIT_LIBRARY AppKit) | |
| 51 list(APPEND LIBRARIES ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY}) | |
| 52 else() # NOT CMAKE_OBJCXX_COMPILER | |
| 53 message(WARNING "An Objective-C++ compiler couldn't be found! Window enumeration support will not be compiled.") | |
| 54 endif() # CMAKE_OBJCXX_COMPILER | |
| 55 elseif(WIN32) | 43 elseif(WIN32) |
| 56 list(APPEND DEFINES WIN32) | 44 list(APPEND DEFINES WIN32) |
| 57 list(APPEND SRC_FILES | 45 list(APPEND SRC_FILES |
| 58 # win32 | 46 # win32 |
| 59 src/fd/win32.cc | 47 src/fd/win32.cc |
