Created
May 5, 2013 21:56
-
-
Save i8degrees/5522347 to your computer and use it in GitHub Desktop.
elle CMake Build Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required ( VERSION 2.6 ) | |
set ( CMAKE_VERBOSE_MAKEFILE true ) | |
set ( CMAKE_BUILD_TYPE Debug ) | |
#set ( BUILD_SHARED_LIBS true ) | |
#set ( CMAKE_OSX_ARCHITECTURES i386;x86_64 ) # OSX Universal Library | |
set ( CMAKE_CXX_COMPILER "/usr/bin/clang++" ) | |
set ( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++" ) | |
set ( CMAKE_CXX_FLAGS_DEBUG "-gfull -O0 -Wall" ) | |
set ( CMAKE_CXX_FLAGS_RELEASE "-O2" ) | |
project ( elle ) | |
set ( ELLE_SOURCE | |
AssetCache.cpp | |
GameEngine.cpp | |
Locator.cpp | |
Maths.cpp | |
SDLAudio.cpp | |
Timer.cpp | |
) | |
find_package ( SDL REQUIRED ) | |
include_directories ( ${SDL_INCLUDE_DIR} ) | |
find_package ( SDL_image REQUIRED ) | |
include_directories ( ${SDLIMAGE_INCLUDE_DIR} ) | |
find_package ( SDL_mixer REQUIRED ) | |
include_directories ( ${SDLMIXER_INCLUDE_DIR} ) | |
find_package ( SDL_ttf REQUIRED ) | |
include_directories ( ${SDLTTF_INCLUDE_DIR} ) | |
link_libraries ( elle # makefile target | |
${SDL_LIBRARY} | |
${SDLIMAGE_LIBRARY} | |
${SDLMIXER_LIBRARY} | |
${SDLTTF_LIBRARY} | |
#SDLmain | |
) | |
#add_library ( elle SHARED ${ELLE_SOURCE} ) | |
#set_target_properties ( elle # makefile target | |
# PROPERTIES SOVERSION "0.1" | |
# ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment