Dear iJokerify,
I’m using Clion for debug, here is my cmakelist:
cmake_minimum_required(VERSION 3.10)
project(LBM)
SET (CMAKE_USE_RELATIVE_PATHS ON)
#OpenLB库文件
set(LINK_DIR ${PROJECT_SOURCE_DIR}/lib/olb/build/precompiled/lib)
link_directories(${LINK_DIR})
set(CMAKE_CXX_STANDARD 14)
#OpenLB库文件
include_directories(${PROJECT_SOURCE_DIR}/lib/olb/src)
include_directories(${PROJECT_SOURCE_DIR}/lib/olb/src/external/zlib)
include_directories(${PROJECT_SOURCE_DIR}/lib/olb/src/external/tinyxml)
include_directories(SYSTEM ${MPI_INCLUDE_PATH})
set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS}
#your source code PATH
add_executable(LBM ${PROJECT_SOURCE_DIR}/src/main3d.cpp )
target_link_libraries(LBM olb)
target_link_libraries(LBM z)
you should precompiled opeblb first and put everthing in opeblb libary under the /lib/olb/ (make new dir named lib&olb)
or you can just give me your email I can send you files