cmake_minimum_required(VERSION 2.6) project(tuxworld) set(CMAKE_BUILD_TYPE Debug) find_package(SDL REQUIRED) find_package(SDL_ttf REQUIRED) find_package(SDL_image REQUIRED) find_package(SDL_mixer REQUIRED) find_package(OpenGL REQUIRED) include_directories( ${SDL_INCLUDE_DIR} ) set( # to build with new norms in c++ CMAKE_CXX_FLAGS "-std=c++0x" ) file( GLOB_RECURSE source_files src/* ) add_executable( tuxworld ${source_files} ) TARGET_LINK_LIBRARIES( tuxworld SDL SDL_ttf SDL_image SDL_mixer GL )