fix animation for good this time
[exterlulz-musk.git] / src / CMakeLists.txt
blob06c93e186ffa07d0fa697e4727f6f812c8bcefac
1 project( MUSK )
2 # TODO: use MUSK_BINARY_DIR and MUSK_SOURCE_DIR
4 cmake_minimum_required( VERSION 2.8 )
6 # TODO: remove and add include( Lua51 )
7 include_directories( ./ )
9 set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} "-Wall" )
11 # TODO: load the SDL with Linux too...
12 if( APPLE )
13   include( FindSDL )
14   include( FindSDL_image )
15   include( FindSDL_ttf )
17   include_directories( ${SDL_INCLUDE_DIR} )
18   include_directories( ${SDLIMAGE_INCLUDE_DIR} )
19   include_directories( ${SDLTTF_INCLUDE_DIR} )
20 endif( APPLE )
22 file( GLOB MUSK_SOURCES
23   main.cpp
24   musk/*.cpp
25   lua/*.c )
27 if( APPLE )
28   list( APPEND MUSK_SOURCES SDLmain.m )
29 endif( APPLE )
31 # add: if( APPLE ) elseif( UNIX ) endif(...) for SDLmain
33 add_executable( musk MACOSX_BUNDLE ${MUSK_SOURCES} )
34 target_link_libraries( musk ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} )
36 # if( APPLE )
37   # include( BundleUtilities )
38   # install( DIRECTORY /Library/Frameworks/SDL.framework DESTINATION musk.app/Contents/Frameworks )
39 # endif( APPLE )