Microflow 3D  v1.0
/home/romek/CLionProjects/Microflow_3D_v1/source/CMakeLists.txt File Reference

Functions

 cmake_minimum_required (VERSION 3.10) project(Microflow VERSION 0.1 LANGUAGES CXX) set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_CXX_STANDARD 17) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() set(CMAKE_CXX_FLAGS_RELEASE "-Ofast") include_directories(.) include_directories(Parsers) include_directories(MFDatabase) include_directories(MFSolver_CPU) include_directories(GeometryBuilder) include_directories(ReadersAndWriters) include_directories(GridUtilities) include_directories(LBParametersConverter) include_directories(../external/config4cpp/include) find_package(VTK REQUIRED) find_package(OpenMP REQUIRED) find_package(Boost REQUIRED) include_directories($
 
 add_executable (Microflow MFSolver_CPU/MFSolver_CPU.cpp GeometryBuilder/StlMesher.cpp ReadersAndWriters/STLReader.cpp ReadersAndWriters/VTIWriter.h ReadersAndWriters/VDBWriter.h Parsers/CmdLineArgsParser.cpp Parsers/TextParser.cpp MFSolver_CPU/ConsoleWriter.cpp MFDatabase/ConfigData.cpp MFSolver_CPU/ProgramParameters.cpp MFSolver_CPU/CaseParameters.cpp GeometryBuilder/GeometryBuildFromSTL.cpp GridUtilities/PropagationD3Q19.cpp GridUtilities/LatticeParametersD3Q19.h GridUtilities/DirectionsD3Q19.h GeometryBuilder/VDBGridOperations.h MFDatabase/GridVDB.h GeometryBuilder/AutoSettingNode.cpp ReadersAndWriters/CSVReader.cpp GeometryBuilder/BoundaryFromThread.cpp MFDatabase/ThreadArray.h MFDatabase/Node.h MFDatabase/Thread.h MFDatabase/AutoThreading.cpp MFDatabase/Vec3.h MFSolver_CPU/BoundaryFunctions.cpp MFSolver_CPU/FluidFunctions.cpp MFSolver_CPU/Collision.cpp MFDatabase/Vec4.h GeometryBuilder/NodeID.h LBParametersConverter/ParametersConversion.cpp MFSolver_CPU/Initialization.cpp MFSolver_CPU/Calculations.cpp MFDatabase/NodePropArray.h GeometryBuilder/FluidFromThread.cpp GeometryBuilder/SolidFromThread.cpp) add_custom_target(target_config4cpp COMMAND make WORKING_DIRECTORY $
 
external config4cpp add_dependencies (Microflow target_config4cpp) target_link_libraries(Microflow openvdb Half tbb config4cpp $
 
 target_link_libraries (Microflow OpenMP::OpenMP_CXX) message("CMAKE_BUILD_TYPE is $
 
 if (CMAKE_BUILD_TYPE MATCHES Release) message("CMAKE_CXX_FLAGS_RELEASE is $
 
 elseif (CMAKE_BUILD_TYPE MATCHES Debug) message("CMAKE_CXX_FLAGS_DEBUG is $
 

Function Documentation

◆ add_dependencies()

external config4cpp add_dependencies ( Microflow  target_config4cpp)

Definition at line 77 of file CMakeLists.txt.

79  {VTK_LIBRARIES})

◆ add_executable()

add_executable ( Microflow MFSolver_CPU/MFSolver_CPU.cpp GeometryBuilder/StlMesher.cpp ReadersAndWriters/STLReader.cpp ReadersAndWriters/VTIWriter.h ReadersAndWriters/VDBWriter.h Parsers/CmdLineArgsParser.cpp Parsers/TextParser.cpp MFSolver_CPU/ConsoleWriter.cpp MFDatabase/ConfigData.cpp MFSolver_CPU/ProgramParameters.cpp MFSolver_CPU/CaseParameters.cpp GeometryBuilder/GeometryBuildFromSTL.cpp GridUtilities/PropagationD3Q19.cpp GridUtilities/LatticeParametersD3Q19.h GridUtilities/DirectionsD3Q19.h GeometryBuilder/VDBGridOperations.h MFDatabase/GridVDB.h GeometryBuilder/AutoSettingNode.cpp ReadersAndWriters/CSVReader.cpp GeometryBuilder/BoundaryFromThread.cpp MFDatabase/ThreadArray.h MFDatabase/Node.h MFDatabase/Thread.h MFDatabase/AutoThreading.cpp MFDatabase/Vec3.h MFSolver_CPU/BoundaryFunctions.cpp MFSolver_CPU/FluidFunctions.cpp MFSolver_CPU/Collision.cpp MFDatabase/Vec4.h GeometryBuilder/NodeID.h LBParametersConverter/ParametersConversion.cpp MFSolver_CPU/Initialization.cpp MFSolver_CPU/Calculations.cpp MFDatabase/NodePropArray.h GeometryBuilder/FluidFromThread.cpp GeometryBuilder/SolidFromThread.  cpp)

Definition at line 37 of file CMakeLists.txt.

76  {CMAKE_CURRENT_SOURCE_DIR}../../external/config4cpp)

◆ cmake_minimum_required()

cmake_minimum_required ( VERSION 3.  10)

Definition at line 1 of file CMakeLists.txt.

33  ://cmake.org/cmake/help/latest/module/FindBoost.html
34 find_package(Boost REQUIRED)
35 include_directories(${Boost_INCLUDE_DIR})

◆ elseif()

elseif ( CMAKE_BUILD_TYPE MATCHES  Debug)

Definition at line 85 of file CMakeLists.txt.

86  {CMAKE_CXX_FLAGS_DEBUG}")

◆ if()

if ( CMAKE_BUILD_TYPE MATCHES  Release)

Definition at line 83 of file CMakeLists.txt.

84  {CMAKE_CXX_FLAGS_RELEASE}")

◆ target_link_libraries()

target_link_libraries ( Microflow OpenMP::OpenMP_CXX  )

Definition at line 80 of file CMakeLists.txt.

82  {CMAKE_BUILD_TYPE}")