Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
Prepares for pre-release v0.8.0-beta2

Conflicts:
	README.md
  • Loading branch information
Friedemann Zenke committed Aug 19, 2016
2 parents 41bf994 + e72ad0e commit f8a8a41
Show file tree
Hide file tree
Showing 192 changed files with 2,574 additions and 849 deletions.
38 changes: 24 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
cmake_minimum_required (VERSION 2.8.11)
project (Auryn)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
PROJECT(Auryn)

# The version number.
set (Auryn_VERSION_MAJOR 0)
set (Auryn_VERSION_MINOR 8)
SET(Auryn_VERSION_MAJOR 0)
SET(Auryn_VERSION_MINOR 8)

# Important GCC Compiler flags for Auryn's performance
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native -ffast-math -pipe")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native -ffast-math -pipe")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic")

# Display flags (for debugging only)
# message("CMAKE_CXX_FLAGS_DEBUG is ${CMAKE_CXX_FLAGS_DEBUG}")
# message("CMAKE_CXX_FLAGS_RELEASE is ${CMAKE_CXX_FLAGS_RELEASE}")

# Required external MPI libraries
# Find external MPI libraries
FIND_PACKAGE(MPI REQUIRED)

# Required Boost libraries
# Find Boost libraries
SET(BOOST_MIN_VERSION "1.41.0")
FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS mpi serialization program_options date_time unit_test_framework system filesystem)
IF(MPI_FOUND)
FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS mpi serialization program_options date_time unit_test_framework system filesystem)
ELSE()
FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS serialization program_options date_time unit_test_framework system filesystem)
ENDIF()
# TODO add align to the components list once AurynVector uses it

# Recommended: Doxygen
FIND_PACKAGE(Doxygen)

IF(MPI_FOUND)
set(AURYN_EXT_LINKLIBS ${MPI_CXX_LIBRARIES} ${Boost_LIBRARIES} )
set(AURYN_EXT_INCLUDEDIRS ${MPI_CXX_INCLUDE_PATH} ${Boost_INCLUDE_DIRS} )
ELSE()
set(AURYN_EXT_LINKLIBS ${Boost_LIBRARIES} )
set(AURYN_EXT_INCLUDEDIRS ${Boost_INCLUDE_DIRS} )
ENDIF()

INCLUDE_DIRECTORIES( ${MPI_CXX_INCLUDE_PATH} )
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} )
INCLUDE_DIRECTORIES(src)

# INCLUDE_DIRECTORIES( ${AURYN_EXT_INCLUDEDIRS} )
INCLUDE_DIRECTORIES( src )

ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(examples)
Expand Down
Loading

0 comments on commit f8a8a41

Please sign in to comment.