Hello,
I reinstalling IBAMR using autoibamr and have trouble recompiling executables for my older IIM simulations.
I followed instructions on
https://ibamr.github.io/linking and tried to modify create cmake lists to the following:
PROJECT(mysolver)CMAKE_MINIMUM_REQUIRED(VERSION 3.15.0)
ADD_EXECUTABLE(main3d main.cpp FeedbackForcer.cpp VelocityBcCoefs.cpp)
FIND_PACKAGE(IBAMR 0.11.0 REQUIRED)
TARGET_LINK_LIBRARIES(main3d IBAMR::IBAMR3d)
# IBAMR saves the flags it used to compile - you can reuse them if you want to
SET(CMAKE_CXX_FLAGS ${IBAMR_CXX_FLAGS})
However, when I run the command :
cmake -DIBAMR_ROOT="${IBAMR_ROOT}" .
CMakeFiles folder is generated, but not my main3d file.
Below are the contents of the makefile I used with my prior installation of IBAMR when it was setup with ./configure
include $(IBAMR_BUILD_DIR)/config/make.inc
###############################################################
#Build the application.
SRC = $(wildcard *.cpp)
CPPFLAGS += -MD -MP
PDIM = 3
OBJS = $(SRC:%.cpp=%.o) $(IBAMR_LIB_3D) $(IBTK_LIB_3D)
main3d: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -DNDIM=$(PDIM) -o $@
-include $(SRC:%.cpp=%.d)
What am I missing in the CMakeList?
Thanks,
Keerthi