root/OpenSceneGraph/trunk/examples/osgviewerSDL/CMakeLists.txt @ 7025

Revision 7025, 0.8 kB (checked in by robert, 7 years ago)

Set the eol style on CMake .txt files to native

  • Property svn:eol-style set to native
RevLine 
[6427]1IF("${SDL_LIBRARY}" MATCHES "SDLmain")
2       # Found a precompiled SDLmain library.
[6813]3       SET(TARGET_SRC osgviewerSDL.cpp)
[6427]4ELSE("${SDL_LIBRARY}" MATCHES "SDLmain")
5       # No SDLmain has been found.
6       # Depending on platform, code may need to be provided for SDLmain.
7       IF(APPLE)
[6813]8               SET(TARGET_SRC osgviewerSDL.cpp SDLMainForMacOSX.m SDLMainForMacOSX.h)
[6427]9       ELSE(APPLE)
10               # Unhandled case. No libsdlmain has been found and no code substitute.
11               # Depending on platform (or SDL version),
12               # this may or may not link successfully.
[6813]13               SET(TARGET_SRC osgviewerSDL.cpp)
[6427]14       ENDIF(APPLE)
15ENDIF("${SDL_LIBRARY}" MATCHES "SDLmain")
[6390]16
[6400]17SET(TARGET_EXTERNAL_LIBRARIES ${SDL_LIBRARY} )
18
[6390]19INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} )
20
21#### end var setup  ###
[6813]22SETUP_EXAMPLE(osgviewerSDL)
[6427]23
Note: See TracBrowser for help on using the browser.