Mercurial > minori
comparison dep/animia/CMakeLists.txt @ 156:cdf79282d647
dep/animia: add VERY early x11 window stuff
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 15 Nov 2023 18:04:04 -0500 |
| parents | d2bbb5773616 |
| children | 80d6b28eb29f |
comparison
equal
deleted
inserted
replaced
| 155:d2bbb5773616 | 156:cdf79282d647 |
|---|---|
| 10 src/win.cc | 10 src/win.cc |
| 11 ) | 11 ) |
| 12 | 12 |
| 13 set(LIBRARIES) | 13 set(LIBRARIES) |
| 14 | 14 |
| 15 set(INCLUDE_DIRS | |
| 16 include | |
| 17 ) | |
| 18 | |
| 19 set(DEFINES) | |
| 20 | |
| 15 # FD | 21 # FD |
| 16 if(LINUX) | 22 if(LINUX) |
| 23 list(APPEND DEFINES LINUX) | |
| 17 list(APPEND SRC_FILES | 24 list(APPEND SRC_FILES |
| 18 # linux | 25 # linux |
| 19 src/fd/linux.cc | 26 src/fd/linux.cc |
| 20 ) | 27 ) |
| 21 elseif(APPLE) # this won't run on Linux | 28 elseif(APPLE) # this won't run on Linux |
| 29 list(APPEND DEFINES MACOSX) | |
| 22 list(APPEND SRC_FILES | 30 list(APPEND SRC_FILES |
| 23 # xnu stuff | 31 # xnu stuff |
| 24 src/fd/xnu.cc | 32 src/fd/xnu.cc |
| 25 ) | 33 ) |
| 26 elseif(WIN32) | 34 elseif(WIN32) |
| 35 list(APPEND DEFINES WIN32) | |
| 27 list(APPEND SRC_FILES | 36 list(APPEND SRC_FILES |
| 28 # win32 | 37 # win32 |
| 29 src/fd/win32.cc | 38 src/fd/win32.cc |
| 30 ) | 39 ) |
| 31 endif() | 40 endif() |
| 43 ) | 52 ) |
| 44 find_library(FOUNDATION_LIBRARY Foundation) | 53 find_library(FOUNDATION_LIBRARY Foundation) |
| 45 find_library(COREGRAPHICS_LIBRARY CoreGraphics) | 54 find_library(COREGRAPHICS_LIBRARY CoreGraphics) |
| 46 find_library(APPKIT_LIBRARY AppKit) | 55 find_library(APPKIT_LIBRARY AppKit) |
| 47 list(APPEND LIBRARIES ${FOUNDATION_LIBRARY} ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY}) | 56 list(APPEND LIBRARIES ${FOUNDATION_LIBRARY} ${COREGRAPHICS_LIBRARY} ${APPKIT_LIBRARY}) |
| 57 else() | |
| 58 find_package(X11::X11) | |
| 59 if (X11_FOUND) | |
| 60 list(APPEND DEFINES X11) | |
| 61 list(APPEND SRC_FILES | |
| 62 src/win/x11.cc | |
| 63 ) | |
| 64 list(APPEND INCLUDE_DIRS | |
| 65 ${X11_INCLUDE_DIR} | |
| 66 ) | |
| 67 list(APPEND LIBRARIES | |
| 68 ${X11_LIBRARIES} | |
| 69 ) | |
| 70 endif() | |
| 48 endif() | 71 endif() |
| 49 | 72 |
| 50 add_library(animia SHARED ${SRC_FILES}) | 73 add_library(animia SHARED ${SRC_FILES}) |
| 51 set_target_properties(animia PROPERTIES | 74 set_target_properties(animia PROPERTIES |
| 52 PUBLIC_HEADER include/animia.h | 75 PUBLIC_HEADER include/animia.h |
