Skip to content
Snippets Groups Projects
Select Git revision
  • showinput
  • next default protected
  • gametype-refactor
  • http-download
  • any-resolution
  • master
  • lua-colorlib
  • lua-extracolormap
  • patch-refactor
  • netcode-rerefactor
  • 2212-pre1
  • delfile2
  • preserve-texture-col-frac
  • weaponshadow
  • cleanupmusic
  • udmf-texture-scaling
  • levelstruct
  • polybsp
  • tc
  • udmf-nophysicsequation
  • SRB2_release_2.2.11
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
40 results

specials.html

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    FindSDL2_main.cmake 694 B
    # Find SDL2
    # Once done, this will define
    #
    #  SDL2_MAIN_FOUND - system has SDL2
    #  SDL2_MAIN_INCLUDE_DIRS - SDL2 include directories
    #  SDL2_MAIN_LIBRARIES - link libraries
    
    include(LibFindMacros)
    
    libfind_pkg_check_modules(SDL2_MAIN_PKGCONF SDL2)
    
    # includes
    find_path(SDL2_MAIN_INCLUDE_DIR
    	NAMES SDL.h
    	PATHS
    		${SDL2_MAIN_PKGCONF_INCLUDE_DIRS}
    		"/usr/include/SDL2"
    		"/usr/local/include/SDL2"
    )
    
    # library
    find_library(SDL2_MAIN_LIBRARY
    	NAMES SDL2_main
    	PATHS
    		${SDL2_MAIN_PKGCONF_LIBRARY_DIRS}
    		"/usr/lib"
    		"/usr/local/lib"
    )
    
    
    # set include dir variables
    set(SDL2_MAIN_PROCESS_INCLUDES SDL2_MAIN_INCLUDE_DIR)
    set(SDL2_MAIN_PROCESS_LIBS SDL2_MAIN_LIBRARY)
    libfind_process(SDL2_MAIN)