Michele Santullo
20a7e0450d
Don't use surfaces, SDL2_image lets you create a texture directly. This is missing the graphic files that the code seeks to load so it will not run.
20 lines
513 B
CMake
20 lines
513 B
CMake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -g -O0 -Wall -Wextra")
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -O3 -Wall -Wextra")
|
|
#string(COMPARE EQUAL CMAKE_BINARY_DIR CMAKE_SOURCE_DIR IN_SOURCE_BUILD)
|
|
|
|
add_definitions(-DWITH_VECTOR_IOSTREAM)
|
|
|
|
find_library(Boost 1.21.0 REQUIRED)
|
|
|
|
include_directories(SYSTEM
|
|
${Boost_INCLUDE_DIRECTORIES}
|
|
)
|
|
|
|
include_directories(
|
|
include/
|
|
)
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(test)
|