Created
October 7, 2010 15:26
-
-
Save gamefreak/615275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF(NOT SDL_FOUND) | |
ExternalProject_Add(SDL | |
DOWNLOAD_DIR "" | |
#URL http://www.libsdl.org/release/SDL-1.2.14.tar.gz | |
URL ${CMAKE_CURRENT_SOURCE_DIR}/external/SDL.tar.gz | |
SOURCE_DIR external/SDL/ | |
BUILD_IN_SOURCE 1 | |
CONFIGURE_COMMAND ./configure | |
BUILD_COMMAND make -j2 | |
INSTALL_COMMAND "" | |
) | |
SET(SDL_INCLUDE_DIR ${CMAKE_BINARY_DIR}/external/SDL/include) | |
SET(SDL_LIBRARY ${CMAKE_BINARY_DIR}/external/SDL/build/libSDL.la) | |
SET(SDLMAIN_LIBRARY ${CMAKE_BINARY_DIR}/external/SDL/build/libSDLmain.a) | |
SET(SDL_FOUND 1) | |
ENDIF(NOT SDL_FOUND) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment