Archived
1
Fork 0

Uses C++11 + boost now. Adds headers to QtCreator project.

This commit is contained in:
Joshua Moerman 2013-11-06 22:20:26 +01:00
parent 3bcc2abf42
commit 0853249e2d
6 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,7 @@
cmake_minimum_required (VERSION 2.6)
include_directories(SYSTEM "${PROJECT_SOURCE_DIR}/include/")
add_definitions( -std=c++0x )
option(MultiCoreBSP "Building with Multi Core BSP" OFF)
if(MultiCoreBSP)
@ -13,7 +14,7 @@ else()
set(libs bsponmpi m)
endif()
find_package(Boost REQUIRED COMPONENTS program_options)
find_package(Boost REQUIRED COMPONENTS program_options filesystem system)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
set(libs ${libs} ${Boost_LIBRARIES})

0
include/includes.hpp Normal file
View file

0
include/utilities.hpp Normal file
View file

View file

@ -1,7 +1,12 @@
file(GLOB sources *.cpp)
file(GLOB headers *.hpp)
find_package(PNG REQUIRED)
include_directories(SYSTEM ${PNG_INCLUDE_DIRS})
set(libs ${libs} ${PNG_LIBRARIES})
foreach(source ${sources})
get_filename_component(exec ${source} NAME_WE)
add_executable(${exec} ${source})
add_executable(${exec} ${source} ${headers})
target_link_libraries(${exec} ${libs})
endforeach()

View file

View file