CMakeLists.txt
changeset 10012 ed02c7a84612
parent 10009 8c6b05b0a27e
child 10013 9f758c4d746a
equal deleted inserted replaced
10011:08f381fd2279 10012:ed02c7a84612
     2   message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL source code and call cmake from there")
     2   message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL source code and call cmake from there")
     3 endif()
     3 endif()
     4 
     4 
     5 cmake_minimum_required(VERSION 2.8)
     5 cmake_minimum_required(VERSION 2.8)
     6 project(SDL2 C)
     6 project(SDL2 C)
       
     7 
       
     8 # !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
       
     9 # !!! FIXME:  for the SDL2 shared library (so you get an
       
    10 # !!! FIXME:  install_name ("soname") of "@rpath/libSDL-whatever.dylib"
       
    11 # !!! FIXME:  instead of "/usr/local/lib/libSDL-whatever.dylib"), but I'm
       
    12 # !!! FIXME:  punting for now and leaving the existing behavior. Until this
       
    13 # !!! FIXME:  properly resolved, this line silences a warning in CMake 3.0+.
       
    14 # !!! FIXME:  remove it and this comment entirely once the problem is
       
    15 # !!! FIXME:  properly resolved.
       
    16 cmake_policy(SET CMP0042 OLD)
       
    17 
     7 include(CheckFunctionExists)
    18 include(CheckFunctionExists)
     8 include(CheckLibraryExists)
    19 include(CheckLibraryExists)
     9 include(CheckIncludeFiles)
    20 include(CheckIncludeFiles)
    10 include(CheckIncludeFile)
    21 include(CheckIncludeFile)
    11 include(CheckSymbolExists)
    22 include(CheckSymbolExists)