|
| 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 $ |
|