Commit f514df1e authored by Martin Schneider's avatar Martin Schneider

[cmake] Corrected CMakeLists

Added dune_enable_all_packages() that was missing
and prevented compilation.

Reviewed by Timo and Kilian
parent 59a3ce2a
cmake_minimum_required(VERSION 2.8.6)
project(dumux-lecture C CXX)
#set up project
project("dumux-lecture" C CXX)
if(NOT (dune-common_DIR OR dune-common_ROOT OR
"${CMAKE_PREFIX_PATH}" MATCHES ".*dune-common.*"))
string(REPLACE ${CMAKE_PROJECT_NAME} dune-common dune-common_DIR
# general stuff
cmake_minimum_required(VERSION 2.8.12)
if(NOT (dune-common_DIR
OR dune-common_ROOT
OR "${CMAKE_PREFIX_PATH}" MATCHES ".*dune-common.*"))
string(REPLACE ${CMAKE_PROJECT_NAME}
dune-common dune-common_DIR
${PROJECT_BINARY_DIR})
endif()
......@@ -17,6 +22,7 @@ include(DuneMacros)
# start a dune project with information from dune.module
dune_project()
dune_enable_all_packages()
add_subdirectory(lecture EXCLUDE_FROM_ALL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment