| 
									
										
										
										
											2021-04-14 05:41:22 +08:00
										 |  |  | # Aseprite
 | 
					
						
							| 
									
										
										
										
											2024-04-10 23:00:17 +08:00
										 |  |  | # Copyright (C) 2021-2024  Igara Studio S.A.
 | 
					
						
							| 
									
										
										
										
											2018-03-27 01:08:08 +08:00
										 |  |  | # Copyright (C) 2001-2018  David Capello
 | 
					
						
							| 
									
										
										
										
											2010-08-11 08:49:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-01 04:04:32 +08:00
										 |  |  | include_directories(.)
 | 
					
						
							| 
									
										
										
										
											2010-08-11 08:49:32 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-26 03:18:46 +08:00
										 |  |  | if(MSVC)
 | 
					
						
							|  |  |  |   add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 | 
					
						
							|  |  |  | endif(MSVC)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-01 04:04:32 +08:00
										 |  |  | if(NOT USE_SHARED_JPEGLIB)
 | 
					
						
							|  |  |  |   add_subdirectory(jpeg)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(NOT USE_SHARED_ZLIB)
 | 
					
						
							| 
									
										
										
										
											2016-04-01 04:48:54 +08:00
										 |  |  |   set(SKIP_INSTALL_ALL on)
 | 
					
						
							| 
									
										
										
										
											2016-04-01 20:50:09 +08:00
										 |  |  |   # Don't build zlib tests
 | 
					
						
							| 
									
										
										
										
											2024-04-10 01:43:43 +08:00
										 |  |  |   set(ZLIB_BUILD_EXAMPLES OFF CACHE BOOL "Enable Zlib Examples")
 | 
					
						
							| 
									
										
										
										
											2010-10-01 04:04:32 +08:00
										 |  |  |   add_subdirectory(zlib)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(NOT USE_SHARED_LIBPNG)
 | 
					
						
							| 
									
										
										
										
											2016-04-01 20:17:40 +08:00
										 |  |  |   set(SKIP_INSTALL_ALL ON)
 | 
					
						
							|  |  |  |   # We only need the static version of libpng
 | 
					
						
							|  |  |  |   set(PNG_SHARED OFF CACHE BOOL "Build shared lib")
 | 
					
						
							|  |  |  |   set(PNG_STATIC ON CACHE BOOL "Build static lib")
 | 
					
						
							|  |  |  |   set(PNG_TESTS OFF CACHE BOOL "Build libpng tests")
 | 
					
						
							| 
									
										
										
										
											2010-10-01 04:04:32 +08:00
										 |  |  |   add_subdirectory(libpng)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-15 11:17:49 +08:00
										 |  |  | if(NOT USE_SHARED_GIFLIB)
 | 
					
						
							| 
									
										
										
										
											2017-10-02 23:24:56 +08:00
										 |  |  |   set(GIFLIB_UTILS OFF CACHE BOOL "Build giflib utils")
 | 
					
						
							| 
									
										
										
										
											2012-03-15 11:17:49 +08:00
										 |  |  |   add_subdirectory(giflib)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-21 01:11:00 +08:00
										 |  |  | if(ENABLE_WEBP AND NOT LAF_BACKEND STREQUAL "skia")
 | 
					
						
							| 
									
										
										
										
											2020-06-08 23:24:32 +08:00
										 |  |  |   set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "Build extras.")
 | 
					
						
							| 
									
										
										
										
											2021-11-09 22:07:18 +08:00
										 |  |  |   set(WEBP_BUILD_ANIM_UTILS OFF CACHE BOOL "Build animation utilities.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_CWEBP OFF CACHE BOOL "Build the cwebp command line tool.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_DWEBP OFF CACHE BOOL "Build the dwebp command line tool.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_GIF2WEBP OFF CACHE BOOL "Build the gif2webp conversion tool.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_IMG2WEBP OFF CACHE BOOL "Build the img2webp animation tool.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_VWEBP OFF CACHE BOOL "Build the vwebp viewer tool.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_WEBPINFO OFF CACHE BOOL "Build the webpinfo command line tool.")
 | 
					
						
							|  |  |  |   set(WEBP_BUILD_WEBPMUX OFF CACHE BOOL "Build the webpmux command line tool.")
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-27 01:08:08 +08:00
										 |  |  |   add_subdirectory(libwebp)
 | 
					
						
							| 
									
										
										
										
											2021-10-13 07:11:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   if(NOT USE_SHARED_LIBPNG)
 | 
					
						
							|  |  |  |     add_dependencies(webp ${PNG_LIBRARY})
 | 
					
						
							|  |  |  |     add_dependencies(webpdemux ${PNG_LIBRARY})
 | 
					
						
							|  |  |  |     add_dependencies(libwebpmux ${PNG_LIBRARY})
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							| 
									
										
										
										
											2018-03-27 01:08:08 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-20 01:04:24 +08:00
										 |  |  | if(NOT USE_SHARED_TINYXML)
 | 
					
						
							| 
									
										
										
										
											2024-05-08 20:59:21 +08:00
										 |  |  |   set(tinyxml2_BUILD_TESTING OFF CACHE BOOL "Build tests for tinyxml2")
 | 
					
						
							| 
									
										
										
										
											2024-04-23 05:28:03 +08:00
										 |  |  |   add_subdirectory(tinyxml2)
 | 
					
						
							| 
									
										
										
										
											2012-03-20 01:04:24 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-25 05:24:05 +08:00
										 |  |  | if(REQUIRE_CURL AND NOT USE_SHARED_CURL)
 | 
					
						
							| 
									
										
										
										
											2015-03-11 00:50:12 +08:00
										 |  |  |   set(BUILD_RELEASE_DEBUG_DIRS ON BOOL)
 | 
					
						
							| 
									
										
										
										
											2021-10-07 04:49:17 +08:00
										 |  |  |   set(BUILD_CURL_EXE OFF CACHE BOOL "Set to ON to build curl executable.")
 | 
					
						
							| 
									
										
										
										
											2024-10-12 01:59:37 +08:00
										 |  |  |   set(CURL_DISABLE_TESTS ON CACHE BOOL "Disable Curl tests")
 | 
					
						
							| 
									
										
										
										
											2021-10-26 05:07:19 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-07-28 08:26:22 +08:00
										 |  |  |   add_subdirectory(curl)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2012-03-15 11:17:49 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-26 09:22:58 +08:00
										 |  |  | if(NOT USE_SHARED_PIXMAN)
 | 
					
						
							|  |  |  |   add_subdirectory(pixman-cmake)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2014-10-30 12:06:27 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-02 05:14:18 +08:00
										 |  |  | if(NOT USE_SHARED_FREETYPE AND NOT LAF_BACKEND STREQUAL "skia")
 | 
					
						
							| 
									
										
										
										
											2016-04-01 04:48:54 +08:00
										 |  |  |   set(SKIP_INSTALL_ALL on)
 | 
					
						
							| 
									
										
										
										
											2018-04-04 00:01:19 +08:00
										 |  |  |   set(WITH_BZip2 OFF CACHE BOOL "")
 | 
					
						
							| 
									
										
										
										
											2016-04-01 04:48:54 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-23 06:27:44 +08:00
										 |  |  |   add_subdirectory(freetype2)
 | 
					
						
							| 
									
										
										
										
											2016-04-04 23:24:40 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-10 02:40:34 +08:00
										 |  |  |   target_compile_definitions(freetype PUBLIC | 
					
						
							|  |  |  |     FT_CONFIG_OPTION_SYSTEM_ZLIB)
 | 
					
						
							| 
									
										
										
										
											2022-05-10 00:06:41 +08:00
										 |  |  |   if(UNIX)
 | 
					
						
							|  |  |  |     target_include_directories(freetype BEFORE PUBLIC | 
					
						
							|  |  |  |       ${CMAKE_CURRENT_BINARY_DIR}/freetype2/include)
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-20 02:16:22 +08:00
										 |  |  |   if(HARFBUZZ_FOUND)
 | 
					
						
							|  |  |  |     target_link_libraries(freetype PRIVATE ${HARFBUZZ_LIBRARIES})
 | 
					
						
							|  |  |  |     target_include_directories(freetype PRIVATE ${HARFBUZZ_INCLUDE_DIRS})
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-04 23:24:40 +08:00
										 |  |  |   if(NOT USE_SHARED_LIBPNG)
 | 
					
						
							| 
									
										
										
										
											2018-04-03 23:43:26 +08:00
										 |  |  |     add_dependencies(freetype ${PNG_LIBRARIES})
 | 
					
						
							| 
									
										
										
										
											2016-04-04 23:24:40 +08:00
										 |  |  |   endif()
 | 
					
						
							| 
									
										
										
										
											2015-09-23 06:27:44 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-17 08:20:00 +08:00
										 |  |  | if(NOT USE_SHARED_HARFBUZZ AND NOT LAF_BACKEND STREQUAL "skia")
 | 
					
						
							| 
									
										
										
										
											2018-04-03 22:11:10 +08:00
										 |  |  |   if(NOT USE_SHARED_FREETYPE)
 | 
					
						
							|  |  |  |     set(ENV{FREETYPE_DIR} ${FREETYPE_DIR})
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							| 
									
										
										
										
											2018-03-27 03:14:38 +08:00
										 |  |  |   set(HB_HAVE_FREETYPE ON CACHE BOOL "Enable freetype interop helpers")
 | 
					
						
							|  |  |  |   set(HB_HAVE_GRAPHITE2 OFF CACHE BOOL "Enable Graphite2 complementary shaper")
 | 
					
						
							|  |  |  |   set(HB_BUILTIN_UCDN ON CACHE BOOL "Use HarfBuzz provided UCDN")
 | 
					
						
							|  |  |  |   set(HB_HAVE_GLIB OFF CACHE BOOL "Enable glib unicode functions")
 | 
					
						
							|  |  |  |   set(HB_HAVE_ICU OFF CACHE BOOL "Enable icu unicode functions")
 | 
					
						
							|  |  |  |   set(HB_HAVE_CORETEXT OFF CACHE BOOL "Enable CoreText shaper backend on macOS")
 | 
					
						
							|  |  |  |   set(HB_HAVE_UNISCRIBE OFF CACHE BOOL "Enable Uniscribe shaper backend on Windows")
 | 
					
						
							|  |  |  |   set(HB_HAVE_DIRECTWRITE OFF CACHE BOOL "Enable DirectWrite shaper backend on Windows")
 | 
					
						
							|  |  |  |   add_subdirectory(harfbuzz)
 | 
					
						
							| 
									
										
										
										
											2017-06-08 04:49:51 +08:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-17 08:27:25 +08:00
										 |  |  | add_subdirectory(simpleini)
 | 
					
						
							| 
									
										
										
										
											2017-10-10 01:43:01 +08:00
										 |  |  | add_subdirectory(fmt)
 | 
					
						
							| 
									
										
										
										
											2016-12-07 03:03:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Add cmark without tests
 | 
					
						
							| 
									
										
										
										
											2017-01-28 19:18:41 +08:00
										 |  |  | if(NOT USE_SHARED_CMARK)
 | 
					
						
							| 
									
										
										
										
											2021-06-17 21:44:22 +08:00
										 |  |  |   set(CMARK_PROGRAM OFF CACHE BOOL "Build cmark executable")
 | 
					
						
							| 
									
										
										
										
											2017-01-28 19:18:41 +08:00
										 |  |  |   set(CMARK_TESTS OFF CACHE BOOL "Build cmark tests and enable testing")
 | 
					
						
							|  |  |  |   add_subdirectory(cmark)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2017-06-11 02:02:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # JSON
 | 
					
						
							| 
									
										
										
										
											2017-06-15 06:50:44 +08:00
										 |  |  | add_subdirectory(json11)
 | 
					
						
							| 
									
										
										
										
											2017-06-12 23:38:53 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # libarchive
 | 
					
						
							| 
									
										
										
										
											2024-04-10 01:43:43 +08:00
										 |  |  | set(HAVE_WCSCPY 1)
 | 
					
						
							|  |  |  | set(HAVE_WCSLEN 1)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-24 08:10:19 +08:00
										 |  |  | set(ENABLE_WERROR OFF CACHE BOOL "Treat warnings as errors - default is ON for Debug, OFF otherwise.")
 | 
					
						
							| 
									
										
										
										
											2017-06-13 00:20:32 +08:00
										 |  |  | set(ENABLE_TEST OFF CACHE BOOL "Enable unit and regression tests")
 | 
					
						
							|  |  |  | set(ENABLE_COVERAGE OFF CACHE BOOL "Enable code coverage (GCC only, automatically sets ENABLE_TEST to ON)")
 | 
					
						
							| 
									
										
										
										
											2021-11-09 22:07:18 +08:00
										 |  |  | set(ENABLE_LZ4 OFF CACHE BOOL "Enable the use of the system LZ4 library if found")
 | 
					
						
							|  |  |  | set(ENABLE_LZO OFF CACHE BOOL "Enable the use of the system LZO library if found")
 | 
					
						
							| 
									
										
										
										
											2017-06-25 00:44:25 +08:00
										 |  |  | set(ENABLE_LZMA OFF CACHE BOOL "Enable the use of the system LZMA library if found")
 | 
					
						
							| 
									
										
										
										
											2021-11-09 22:07:18 +08:00
										 |  |  | set(ENABLE_ZSTD OFF CACHE BOOL "Enable the use of the system zstd library if found")
 | 
					
						
							| 
									
										
										
										
											2017-06-29 04:24:17 +08:00
										 |  |  | set(ENABLE_CNG OFF CACHE BOOL "Enable the use of CNG(Crypto Next Generation)")
 | 
					
						
							| 
									
										
										
										
											2018-04-04 00:01:19 +08:00
										 |  |  | set(ENABLE_BZip2 OFF CACHE BOOL "Enable the use of the system BZip2 library if found")
 | 
					
						
							| 
									
										
										
										
											2022-06-01 03:51:00 +08:00
										 |  |  | set(ENABLE_EXPAT OFF CACHE BOOL "Enable the use of the system EXPAT library if found")
 | 
					
						
							| 
									
										
										
										
											2018-04-04 00:01:32 +08:00
										 |  |  | set(ENABLE_LIBXML2 OFF CACHE BOOL "Enable the use of the system libxml2 library if found")
 | 
					
						
							| 
									
										
										
										
											2021-06-17 21:45:36 +08:00
										 |  |  | set(ENABLE_CAT OFF CACHE BOOL "Enable cat building")
 | 
					
						
							|  |  |  | set(ENABLE_TAR OFF CACHE BOOL "Enable tar building")
 | 
					
						
							|  |  |  | set(ENABLE_CPIO OFF CACHE BOOL "Enable cpio building")
 | 
					
						
							| 
									
										
										
										
											2022-04-22 19:46:57 +08:00
										 |  |  | set(ENABLE_LIBB2 OFF CACHE BOOL "Enable the use of the system LIBB2 library if found")
 | 
					
						
							| 
									
										
										
										
											2017-06-12 23:38:53 +08:00
										 |  |  | add_subdirectory(libarchive)
 | 
					
						
							|  |  |  | target_include_directories(archive_static INTERFACE | 
					
						
							|  |  |  |   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)
 | 
					
						
							| 
									
										
										
										
											2017-07-19 04:03:12 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # benchmark
 | 
					
						
							|  |  |  | if(ENABLE_BENCHMARKS)
 | 
					
						
							| 
									
										
										
										
											2018-04-03 23:40:38 +08:00
										 |  |  |   set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Enable testing of the benchmark library.")
 | 
					
						
							| 
									
										
										
										
											2017-07-19 04:03:12 +08:00
										 |  |  |   add_subdirectory(benchmark)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2017-08-12 04:22:28 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-29 00:33:13 +08:00
										 |  |  | # tinyexpr
 | 
					
						
							|  |  |  | add_library(tinyexpr tinyexpr/tinyexpr.c)
 | 
					
						
							|  |  |  | target_include_directories(tinyexpr PUBLIC tinyexpr)
 | 
					
						
							| 
									
										
										
										
											2018-08-20 22:25:08 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 02:53:04 +08:00
										 |  |  | # cityhash
 | 
					
						
							|  |  |  | add_subdirectory(cityhash)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-20 22:25:08 +08:00
										 |  |  | # lua
 | 
					
						
							| 
									
										
										
										
											2018-08-25 04:53:08 +08:00
										 |  |  | if(ENABLE_SCRIPTING)
 | 
					
						
							|  |  |  |   add_library(lua | 
					
						
							|  |  |  |     lua/lapi.c
 | 
					
						
							|  |  |  |     lua/lcode.c
 | 
					
						
							|  |  |  |     lua/lctype.c
 | 
					
						
							|  |  |  |     lua/ldebug.c
 | 
					
						
							|  |  |  |     lua/ldo.c
 | 
					
						
							|  |  |  |     lua/ldump.c
 | 
					
						
							|  |  |  |     lua/lfunc.c
 | 
					
						
							|  |  |  |     lua/lgc.c
 | 
					
						
							|  |  |  |     lua/llex.c
 | 
					
						
							|  |  |  |     lua/lmem.c
 | 
					
						
							|  |  |  |     lua/lobject.c
 | 
					
						
							|  |  |  |     lua/lopcodes.c
 | 
					
						
							|  |  |  |     lua/lparser.c
 | 
					
						
							|  |  |  |     lua/lstate.c
 | 
					
						
							|  |  |  |     lua/lstring.c
 | 
					
						
							|  |  |  |     lua/ltable.c
 | 
					
						
							|  |  |  |     lua/ltm.c
 | 
					
						
							|  |  |  |     lua/lundump.c
 | 
					
						
							|  |  |  |     lua/lvm.c
 | 
					
						
							|  |  |  |     lua/lzio.c
 | 
					
						
							|  |  |  |     lua/ltests.c)
 | 
					
						
							|  |  |  |   add_library(lauxlib lua/lauxlib.c)
 | 
					
						
							|  |  |  |   add_library(lualib | 
					
						
							|  |  |  |     lua/lbaselib.c
 | 
					
						
							|  |  |  |     lua/lcorolib.c
 | 
					
						
							|  |  |  |     lua/ldblib.c
 | 
					
						
							|  |  |  |     lua/linit.c
 | 
					
						
							|  |  |  |     lua/liolib.c
 | 
					
						
							|  |  |  |     lua/lmathlib.c
 | 
					
						
							|  |  |  |     lua/loadlib.c
 | 
					
						
							|  |  |  |     lua/loslib.c
 | 
					
						
							|  |  |  |     lua/lstrlib.c
 | 
					
						
							|  |  |  |     lua/ltablib.c
 | 
					
						
							|  |  |  |     lua/lutf8lib.c)
 | 
					
						
							| 
									
										
										
										
											2024-04-10 23:00:17 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   if(WIN32)
 | 
					
						
							| 
									
										
										
										
											2024-04-22 09:43:24 +08:00
										 |  |  |     # LUA_USE_WINDOWS is defined in luaconf.h when we compile with _WIN32
 | 
					
						
							|  |  |  |     #target_compile_definitions(lua PUBLIC LUA_USE_WINDOWS=1)
 | 
					
						
							| 
									
										
										
										
											2024-04-10 23:00:17 +08:00
										 |  |  |   elseif(APPLE)
 | 
					
						
							|  |  |  |     target_compile_definitions(lua PUBLIC LUA_USE_MACOSX=1)
 | 
					
						
							|  |  |  |   elseif(UNIX)
 | 
					
						
							|  |  |  |     target_compile_definitions(lua PUBLIC LUA_USE_LINUX=1)
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-22 22:13:10 +08:00
										 |  |  |   # Compile Lua as C++ to control errors with exceptions and have
 | 
					
						
							|  |  |  |   # stack unwinding (i.e. calling destructors correctly).
 | 
					
						
							|  |  |  |   if(MSVC)
 | 
					
						
							|  |  |  |     target_compile_options(lua PRIVATE -TP)
 | 
					
						
							|  |  |  |     target_compile_options(lualib PRIVATE -TP)
 | 
					
						
							|  |  |  |     target_compile_options(lauxlib PRIVATE -TP)
 | 
					
						
							|  |  |  |   else()
 | 
					
						
							|  |  |  |     target_compile_options(lua PRIVATE -xc++)
 | 
					
						
							|  |  |  |     target_compile_options(lualib PRIVATE -xc++)
 | 
					
						
							|  |  |  |     target_compile_options(lauxlib PRIVATE -xc++)
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   target_compile_definitions(lua PUBLIC LUA_FLOORN2I=F2Ifloor)
 | 
					
						
							| 
									
										
										
										
											2021-06-17 21:59:13 +08:00
										 |  |  |   target_compile_definitions(lualib PRIVATE HAVE_SYSTEM)
 | 
					
						
							| 
									
										
										
										
											2018-08-25 04:53:08 +08:00
										 |  |  |   target_include_directories(lua PUBLIC lua)
 | 
					
						
							|  |  |  |   target_include_directories(lauxlib PUBLIC lua)
 | 
					
						
							|  |  |  |   target_include_directories(lualib PUBLIC lua)
 | 
					
						
							|  |  |  |   target_link_libraries(lauxlib lua)
 | 
					
						
							| 
									
										
										
										
											2024-04-10 23:00:17 +08:00
										 |  |  |   target_link_libraries(lualib lua)
 | 
					
						
							| 
									
										
										
										
											2021-09-30 14:13:43 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-03 13:40:29 +08:00
										 |  |  |   # ixwebsocket
 | 
					
						
							|  |  |  |   if(ENABLE_WEBSOCKET)
 | 
					
						
							| 
									
										
										
										
											2021-10-05 05:07:28 +08:00
										 |  |  |     set(IXWEBSOCKET_INSTALL OFF CACHE BOOL "Install IXWebSocket")
 | 
					
						
							| 
									
										
										
										
											2021-10-03 13:40:29 +08:00
										 |  |  |     add_subdirectory(IXWebSocket)
 | 
					
						
							|  |  |  |     target_include_directories(ixwebsocket PUBLIC)
 | 
					
						
							|  |  |  |   endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-25 04:53:08 +08:00
										 |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2023-01-04 23:06:20 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # qoi
 | 
					
						
							|  |  |  | add_library(qoi INTERFACE)
 | 
					
						
							|  |  |  | target_include_directories(qoi INTERFACE qoi)
 |