add basic image loading
[exterlulz-musk.git] / CMakeLists.txt
blobb9c4b954984f07e2f921f0c2dcf7f00037dcf4a4
1 project( sdl-cmake )
2 cmake_minimum_required( VERSION 2.8 )
4 if( APPLE )
5   include( FindSDL )
6   include( FindSDL_image )
8   include_directories( ${SDL_INCLUDE_DIR} )
9   include_directories( ${SDLIMAGE_INCLUDE_DIR} )
10 endif( APPLE )
12 set( MUSK_SOURCES
13   musk/image.cpp
14   musk/animation.cpp )
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} )
21 if( APPLE )
22   # include( BundleUtilities )
23   # install( DIRECTORY /Library/Frameworks/SDL.framework DESTINATION sdl-cmake.app/Contents/Frameworks )
24 endif( APPLE )