File tree Expand file tree Collapse file tree 5 files changed +81
-0
lines changed
Expand file tree Collapse file tree 5 files changed +81
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ hunter_default_version(RedisClient VERSION 0.6.1-p1)
146146hunter_default_version(SDL2 VERSION 2.0.12-p0)
147147hunter_default_version(SDL_image VERSION 2.0.5-p0)
148148hunter_default_version(SDL_mixer VERSION 2.0.2-p0)
149+ hunter_default_version(SDL_net VERSION 2.0.1-p0)
149150hunter_default_version(SDL_ttf VERSION 2.0.15-p0)
150151hunter_default_version(SFML VERSION 2.5.1-p0)
151152hunter_default_version(SPIRV-Headers VERSION 1.5.4.raytracing.fixed)
Original file line number Diff line number Diff line change 1+ # !!! DO NOT PLACE HEADER GUARDS HERE !!!
2+
3+ # Load used modules
4+ include (hunter_add_version)
5+ include (hunter_download)
6+ include (hunter_pick_scheme)
7+ include (hunter_cacheable)
8+
9+ hunter_add_version(
10+ PACKAGE_NAME
11+ SDL_net
12+ VERSION
13+ "2.0.1-p0"
14+ URL
15+ "https://github.com/cpp-pm/SDL_net/archive/v2.0.1-p0.tar.gz"
16+ SHA1
17+ e8024bc53ab01189ede4ff159723e61afe9b53d4
18+ )
19+
20+ hunter_pick_scheme(DEFAULT url_sha1_cmake)
21+ hunter_cacheable(SDL_net)
22+ hunter_download(PACKAGE_NAME SDL_net)
Original file line number Diff line number Diff line change 1+ .. spelling ::
2+
3+ SDL_net
4+
5+ .. index :: networking ; SDL_net
6+
7+ .. _pkg.SDL_net :
8+
9+ SDL_net
10+ =======
11+
12+ - `Official <https://www.libsdl.org/projects/SDL_net/ >`__
13+ - `Hunterized <https://github.com/cpp-pm/SDL_net >`__
14+ - `Example <https://github.com/cpp-pm/hunter/blob/master/examples/SDL_net/CMakeLists.txt >`__
15+ - Added by `drodin <https://github.com/drodin >`__ (`pr-452 <https://github.com/cpp-pm/hunter/pull/452 >`__)
16+
17+ .. code-block :: cmake
18+
19+ hunter_add_package(SDL_net)
20+ find_package(SDL_net CONFIG REQUIRED)
21+ #...
22+ target_link_libraries(foo SDL_net::SDL_net)
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.0)
2+
3+ set (HUNTER_USE_CACHE_SERVERS NO )
4+
5+ # Emulate HunterGate:
6+ # * https://github.com/hunter-packages/gate
7+ include ("../common.cmake" )
8+
9+ project (SDL_net-test )
10+
11+ hunter_add_package(SDL_net)
12+ find_package (SDL_net CONFIG REQUIRED)
13+
14+ if (ANDROID)
15+ add_library (main SHARED main.cpp)
16+ else ()
17+ add_executable (main main.cpp)
18+ endif ()
19+
20+ # Fix MinGW / MSYS build
21+ if (MINGW OR MSYS)
22+ target_link_libraries (main
23+ mingw32
24+ )
25+ endif ()
26+
27+ target_link_libraries (main
28+ SDL_net::SDL_net
29+ SDL2::SDL2main
30+ SDL2::SDL2)
Original file line number Diff line number Diff line change 1+ #include " SDL.h"
2+ #include " SDL_net.h"
3+
4+ int main (int argc, char *argv[]) {
5+ return 0 ;
6+ }
You can’t perform that action at this time.
0 commit comments