set( CMAKE_INCLUDE_CURRENT_DIR ON )
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )

include_directories( ${CMAKE_SOURCE_DIR}/raftinc 
                     ${CMAKE_SCOTCH_INCS} )
##
# we need boost to demangle names, might use
# for random numbers too
##
include( CheckBoostDep )
##
# c std
##
include( CheckSTD )

add_definitions( -DLIBCOMPILE=1 -DRDTSCP=1 -I/usr/include/scotch )

file( GLOB_RECURSE CPP_SRC_FILES *.cpp )
file( GLOB_RECURSE C_SRC_FILES   *.c   )

add_library( raft 
             ${CPP_SRC_FILES} 
             ${C_SRC_FILES}   )

target_link_libraries( raft 
                       ${CMAKE_SCOTCH_LIBS}
                       m )

install( TARGETS raft
         ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

set( CMAKE_INCLUDE_CURRENT_DIR ON )
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )

include_directories( ${CMAKE_SOURCE_DIR}/raftinc 
                     ${CMAKE_SCOTCH_INCS} )
##
# we need boost to demangle names, might use
# for random numbers too
##
include( CheckBoostDep )
##
# c std
##
include( CheckSTD )

add_definitions( -DLIBCOMPILE=1 -DRDTSCP=1 -I/usr/include/scotch )

file( GLOB_RECURSE CPP_SRC_FILES *.cpp )
file( GLOB_RECURSE C_SRC_FILES   *.c   )

add_library( raft 
             ${CPP_SRC_FILES} 
             ${C_SRC_FILES}   )

target_link_libraries( raft 
                       ${CMAKE_SCOTCH_LIBS}
                       m )


target_compile_options( raft
                        PUBLIC
                        "-W" "-Wall" "-Wextra" "-Wpedantic" )

install( TARGETS raft
         ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )

Enable warnings: * add `-W` * add `-Wall` * add `-Wextra` * add `-Wpedantic`
Enable warnings:
* add `-W`
* add `-Wall`
* add `-Wextra`
* add `-Wpedantic`
