2 cmake_minimum_required( VERSION 2.8 )
6 include( FindSDL_image )
8 include_directories( ${SDL_INCLUDE_DIR} )
9 include_directories( ${SDLIMAGE_INCLUDE_DIR} )
16 # add: if( APPLE ) elseif( UNIX ) endif(...) for SDLmain
17 # add_executable( sdl-cmake MACOSX_BUNDLE SDLmain.m main.cpp )
18 add_executable( sdl-cmake MACOSX_BUNDLE main.cpp SDLmain.m ${MUSK_SOURCES} )
19 target_link_libraries( sdl-cmake ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} )
22 # include( BundleUtilities )
23 # install( DIRECTORY /Library/Frameworks/SDL.framework DESTINATION sdl-cmake.app/Contents/Frameworks )