27 Commits

Author SHA1 Message Date
dobbry-vechur 6de37a3430 Remove SDL2 from the build systems
- deleted the SDL2 branches and the bundled FindSDL2 modules
- made SDL3=0 and USE_SDL3=OFF hard errors
2026-08-12 05:46:34 +04:00
alef 280ec08417 Add MSYS2 static libraries to SDL2_mixer 2025-12-29 01:14:13 +01:00
alef 5e4d0bc7db Apply review suggestions 2025-01-16 21:49:04 +01:00
alef e415e69c38 Add CMake function do debug targets 2025-01-16 21:49:03 +01:00
alef f6082522c4 Make use of GIT_BINARY from main option 2024-02-06 20:26:09 +01:00
alef e782f6006f Make this script follow .cmake-format.yml a bit 2024-02-06 20:25:28 +01:00
alef 5bde7a2013 Remove dynamic shared objects from MSYS2 build 2024-01-23 18:37:09 +01:00
alef 267ab9498c Statically link all MSYS2/MINGW64 libraries 2024-01-23 18:37:09 +01:00
alef 9e96cd424e Move pkg-config required FLAC dependency inside conditions 2023-09-30 15:33:27 +02:00
alef 9f9773f482 Add INTERFACE_INCLUDE_DIRECTORIES to SDL2 targets 2023-09-30 15:33:27 +02:00
alef 3a223bc438 Small fixes in CMake build in Linux devcontainer (#68300)
* Resolve more dependencies for the container

* Use dynamic linking for non-VCPKG configuration

* Fix typo for pkg-config

* Link FLAC libraries for dynamic linking too
2023-09-24 23:41:19 -05:00
alef 46adf3cbfd Removing libzip not required for dynamic linking 2023-06-12 19:10:32 +02:00
alef 891258a9dc Add more required libs to SDL2_image imported target 2023-06-12 19:10:32 +02:00
alef ea8dfc8be3 Add SDL2 targets for dynamic linking 2023-06-12 19:10:32 +02:00
alef bdd1c57f4e Use pkg-config to help finding mostly static libraries
The FindSDL2*.cmake modules create the *::*-static imported targets
like VCPKG does. This way we can reuse the same names and reduce the
complexity in the main and src CMakeLists.txt.
2023-06-12 19:10:32 +02:00
alef 6d3a377c25 Remove redundant modules from CMakeModules
CMakeParseArguments.cmake since v3.4
CMakePushCheckState.cmake since v2.8.6
CheckLibraryExists since v2.8.2
FindCurses since v3.21.0
FindPackageHandleStandardArgs since v3.1.0
FindPackageMessage since v3.0.0
2022-11-25 17:39:02 +01:00
alef a27e10dd8c Do not use our Find* modules under VCPKG 2022-10-19 17:58:49 +02:00
Binrui Dong d4890197db Link to libncursesw in CMake (#55054) 2022-02-03 16:08:35 -08:00
klorpa 6601f35040 SpellingStandardizing 2020-04-02 20:14:28 -05:00
ZhilkinSerg cf9dee953d Get rid of Lua modding (#28572)
* Get rid of Lua modding
2019-03-13 20:36:17 -07:00
John Bytheway d0da411271 Update FindCurses.cmake (#26741)
This includes a fix to add -ltinfo where necessary, which is required to
get the curses version to link on my system.

I pulled this from the CMake 3.0.0 distribution, which entailed adding a
bunch of other cmake files from the same place which are dependencies of
the new FindCurses.
2018-11-18 00:27:10 +00:00
MacrosBlackD c2e14f46fe Tweaks for CMake/CLion builds
Fix loading tiles with PREFIX set
Added TILES definitions to CMAKE for tiles builds
Added FindLua.cmake
2015-07-17 15:40:47 -05:00
Karl Parakenings 94aa335101 Adding git revision module to CmakeMods & updating CMakeList to use it 2015-07-14 21:36:43 -07:00
brezerk 7e21d12ad5 Add uninstall target; Rework win32 static compiltaion; Add shared libs install for win32 (dev only); 2015-05-05 10:17:33 +03:00
brezerk 85b53eae30 Fixup win32 static link order; add freetype and iconv search and link; 2015-04-23 13:13:17 +03:00
brezerk 068393d5ee Add Libintl search; Unblock LOCALIZE for WIN target; Port definitions from Makefile; 2015-04-22 20:00:13 +03:00
brezerk 646f6bef95 Rename cmake to CMakeModules 2015-04-13 19:24:00 +03:00