add Lua sources
[exterlulz-musk.git] / src / CMakeLists.txt
blob5a2709a749537ed59188ab9c23efb2e11aa4b600
1 project( MUSK )
2 # TODO: use MUSK_BINARY_DIR and MUSK_SOURCE_DIR
4 cmake_minimum_required( VERSION 2.8 )
6 # TODO: load the SDL with Linux too...
7 if( APPLE )
8   include( FindSDL )
9   include( FindSDL_image )
10   include( FindSDL_ttf )
12   include_directories( ${SDL_INCLUDE_DIR} )
13   include_directories( ${SDLIMAGE_INCLUDE_DIR} )
14   include_directories( ${SDLTTF_INCLUDE_DIR} )
15 endif( APPLE )
17 file(GLOB MUSK_SOURCES
18   SDLmain.m
19   main.cpp
20   musk/*.cpp
21   lua/*.c )
23 # add: if( APPLE ) elseif( UNIX ) endif(...) for SDLmain
24 add_executable( musk MACOSX_BUNDLE ${MUSK_SOURCES} )
25 target_link_libraries( musk ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} )
27 # if( APPLE )
28   # include( BundleUtilities )
29   # install( DIRECTORY /Library/Frameworks/SDL.framework DESTINATION musk.app/Contents/Frameworks )
30 # endif( APPLE )