Files
opm-common/CMakeLists.txt
Jens Gåsemyr Magnus e92bd4bd36 Separated C++ and python source files
Separating the C++ and python source files to make the repository more
structures as we will create additional C++ source files.
2017-09-01 10:17:57 +02:00

31 lines
1.0 KiB
CMake

cmake_minimum_required( VERSION 2.8 )
project( SUNBEAM )
enable_language( CXX )
include( CheckCXXSourceCompiles )
include( CTest )
# assuming gcc-compatible options
set( warnings "-Wall -Wextra -pedantic -Wpointer-arith" )
set( warnings "${warnings} -Wformat-nonliteral -Wcast-align" )
set( warnings "${warnings} -Wmissing-declarations -Wcast-qual" )
set( warnings "${warnings} -Wwrite-strings -Wchar-subscripts " )
set( warnings "${warnings} -Wredundant-decls" )
set( CMAKE_CXX_FLAGS "-std=c++11 ${warnings} ${CMAKE_CXX_FLAGS}" )
find_package( opm-parser REQUIRED )
find_package( PythonLibs 2.7 REQUIRED )
find_package( PythonInterp 2.7 REQUIRED )
find_package( Boost COMPONENTS python REQUIRED )
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/pycmake/cmake/Modules)
option( USE_RPATH "Embed RPATH in libraries and binaries" OFF)
if (USE_RPATH)
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif ()
add_subdirectory( sunbeam )
add_subdirectory( python )
add_subdirectory( tests )