Droplet Lagrangian Transient One-dimensional Reacting Code Implementation of both liquid and gas phase governing equations.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

43 lignes
1.4KB

  1. cmake_minimum_required(VERSION 3.0.0)
  2. project(demo)
  3. set(CMAKE_CXX_STANDARD 11)
  4. # Define path to header files and libraries
  5. #set(HOME /opt/scientific)
  6. set(CANTERA_DIR /usr/local)
  7. set(IDA_DIR /usr/local)
  8. set(GSL_DIR /usr/local)
  9. set(COOLPROP_DIR /opt/CoolProp/shared_library/Linux)
  10. set(FMT_DIR /usr/local)
  11. set(CANTERA_INCLUDES ${CANTERA_DIR}/include)
  12. set(IDA_INCLUDES ${IDA_DIR}/include)
  13. set(GSL_INCLUDES ${GSL_DIR}/include/gsl)
  14. set(COOLPROP_INCLUDES ${COOLPROP_DIR}/include)
  15. set(FMT_INCLUDES ${FMT_DIR}/include)
  16. set(EIGEN_INCLUDES /opt/eigen-3.4.0)
  17. # Search for source files
  18. aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC_LIST)
  19. add_executable(DropletCombustion ${SRC_LIST})
  20. # Set the RPATH parameter
  21. set(CMAKE_INSTALL_RPATH "${IDA_DIR}/lib;${CANTERA_DIR}/lib;${GSL_DIR}/lib;${COOLPROP_DIR}/lib;${FMT_DIR}/lib")
  22. # Link libraries
  23. target_link_directories(DropletCombustion PRIVATE ${CANTERA_DIR}/lib ${IDA_DIR}/lib ${GSL_DIR}/lib ${COOLPROP_DIR}/64bit ${FMT_DIR}/lib )
  24. target_link_libraries(DropletCombustion
  25. PRIVATE cantera_shared sundials_nvecopenmp sundials_ida sundials_sunlinsollapackband gsl gslcblas CoolProp fmt)
  26. # Include directories
  27. target_include_directories(DropletCombustion
  28. PRIVATE ${PROJECT_SOURCE_DIR}/include ${CANTERA_INCLUDES} ${IDA_INCLUDES} ${GSL_INCLUDES} ${COOLPROP_INCLUDES} ${FMT_INCLUDES} ${EIGEN_INCLUDES} )
  29. # Set the output path
  30. set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)