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...
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} )
22 file( GLOB MUSK_SOURCES
28 list( APPEND MUSK_SOURCES SDLmain.m )
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} )
37 # include( BundleUtilities )
38 # install( DIRECTORY /Library/Frameworks/SDL.framework DESTINATION musk.app/Contents/Frameworks )