cmake_minimum_required(VERSION 3.0.0)
project(demo)

set(CMAKE_CXX_STANDARD 11)


# Define path to header files and libraries
#set(HOME /opt/scientific)
set(CANTERA_DIR /usr/local)
set(IDA_DIR /usr/local)
set(GSL_DIR /usr/local)
set(COOLPROP_DIR /opt/CoolProp/shared_library/Linux)
set(FMT_DIR /usr/local)

set(CANTERA_INCLUDES ${CANTERA_DIR}/include)
set(IDA_INCLUDES ${IDA_DIR}/include)
set(GSL_INCLUDES ${GSL_DIR}/include/gsl)
set(COOLPROP_INCLUDES ${COOLPROP_DIR}/include)
set(FMT_INCLUDES ${FMT_DIR}/include)
set(EIGEN_INCLUDES /opt/eigen-3.4.0)

# Search for source files
aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC_LIST)
add_executable(DropletCombustion ${SRC_LIST})

# Set the RPATH parameter
set(CMAKE_INSTALL_RPATH "${IDA_DIR}/lib;${CANTERA_DIR}/lib;${GSL_DIR}/lib;${COOLPROP_DIR}/lib;${FMT_DIR}/lib")

# Link libraries
target_link_directories(DropletCombustion PRIVATE ${CANTERA_DIR}/lib ${IDA_DIR}/lib ${GSL_DIR}/lib ${COOLPROP_DIR}/64bit ${FMT_DIR}/lib )
target_link_libraries(DropletCombustion
    PRIVATE cantera_shared sundials_nvecopenmp sundials_ida sundials_sunlinsollapackband gsl gslcblas CoolProp fmt)

# Include directories
target_include_directories(DropletCombustion
    PRIVATE ${PROJECT_SOURCE_DIR}/include ${CANTERA_INCLUDES} ${IDA_INCLUDES} ${GSL_INCLUDES} ${COOLPROP_INCLUDES} ${FMT_INCLUDES} ${EIGEN_INCLUDES} )

# Set the output path
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)



