CMakeLists.txt 1 KB
Newer Older
1 2 3
# A minimum version for cmake command is required.
cmake_minimum_required(VERSION 3.8)

4
project( "MoReFEM_CMAKE")
5 6 7

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

8 9 10 11
set (CMAKE_CXX_STANDARD 17)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

12
MESSAGE("Module path: ${CMAKE_MODULE_PATH}")
13 14 15 16

include(CustomCommands)
include(Paths)

17 18
MESSAGE("Generated with config types: ${CMAKE_CONFIGURATION_TYPES}")

19
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --my-debug-flags")
20

21
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Sources /
22
                    ${CMAKE_CURRENT_SOURCE_DIR}/Sources/ThirdParty/Source/Tclap/include /
23 24 25 26 27 28 29 30 31 32 33
                    ${OPS_DIR} /
                    ${SELDON_DIR} /
                    ${OPEN_MPI_INCL_DIR} /
                    ${PETSC_GENERAL_INCL_DIR} /
                    ${PETSC_DEBUG_INCL_DIR} /
                    ${PARMETIS_INCL_DIR} /
                    ${LUA_INCL_DIR} /
                    ${BOOST_INCL_DIR}                    
                    )


34 35
add_subdirectory(Sources)
      
36 37