CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to edit PVFoamReaderCMakeListstxt file (http://www.cfd-online.com/Forums/openfoam-solving/59351-how-edit-pvfoamreadercmakeliststxt-file.html)

nishant_hull October 29, 2007 15:51

Hi Martin.. I have found th
 
Hi Martin..

I have found that for reading your own geometry or problem uou need to modify the file CMakeLists.txt to provide $FOAM_USER_LIBBIN in the linker search path. i wanted to know, where I need to modify the file: $HOME/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphics/PVF oamReader/PVFoamReader/CMakeLists.txt?

My file looks like this:-

1
2 # Must be defined before ADD_LIBRARY for cmake version 2.3.4-20060317
3 LINK_DIRECTORIES($ENV{FOAM_LIBBIN})
4 LINK_DIRECTORIES($ENV{FOAM_USER_LIBBIN})
5
6 # Create vtk client/server wrappers for the classes.
7 VTK_WRAP_ClientServer(${PROJECT_NAME} PVFoamReaderCS_SRCS "${PVFoamReader_SRCS}")
8
9 # Build the package as a plugin for ParaView.
10 ADD_LIBRARY(${PROJECT_NAME} MODULE ${PVFoamReader_SRCS} ${PVFoamReaderCS_SRCS})
11 LINK_DIRECTORIES($ENV{ParaView_INST_DIR}/lib)
12 TARGET_LINK_LIBRARIES(${PROJECT_NAME} vtkClientServer)
13 FOREACH(c ${PVFoamReader_LIBS})
14 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${c}CS)
15 ENDFOREACH(c)
16
17 # Place the package configuration file into the build tree.
18 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/PVFoamReader.xml.in
19 ${PROJECT_BINARY_DIR}/../${PROJECT_NAME}.xml @ONLY IMMEDIATE)
20
21 # Place the package configuration file into the build tree.
22 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/PVFoamReader.pvsm.in
23 ${PROJECT_BINARY_DIR}/../${PROJECT_NAME}.pvsm @ONLY IMMEDIATE)
24
25 TARGET_LINK_LIBRARIES(${PROJECT_NAME} OpenFOAM finiteVolume vtkFoam)
26
~


Please suggest the possible modification.

Nishant

mbeaudoin October 29, 2007 19:24

> I have found that for readin
 
> I have found that for reading your own geometry or problem uou need to modify the file CMakeLists.txt to provide $FOAM_USER_LIBBIN in the linker search path.

Nope. No need to do that. Your pre-compiled version of OpenFOAM and paraView will do just fine.

Martin


All times are GMT -4. The time now is 18:26.