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

set (CMAKE_CXX_STANDARD 17)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

8
MESSAGE("Module path: ${CMAKE_MODULE_PATH}")
9 10 11 12

include(CustomCommands)
include(Paths)

13 14 15 16 17 18 19 20 21 22 23
MESSAGE("Generated with config types: ${CMAKE_CONFIGURATION_TYPES}")

# Check whether 
# string(COMPARE EQUAL "${CMAKE_BUILD_TYPE}" "" NO_BUILD_TYPE)
# if(NO_BUILD_TYPE)
#     set(CMAKE_BUILD_TYPE ${MODE})
# endif()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --my-debug-flags")



24
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Sources /
25
                    ${CMAKE_CURRENT_SOURCE_DIR}/Sources/ThirdParty/Source/Tclap/include /
26 27 28 29 30 31 32 33 34 35 36
                    ${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}                    
                    )


37 38
add_subdirectory(Sources)
      
39 40