Text archives Help
- From: Christiaan Paul Gribble <cgribble@sci.utah.edu>
- To: manta@sci.utah.edu
- Subject: Re: [MANTA] Adding -I/path/to/teem to scene build
- Date: Mon, 15 May 2006 15:06:20 -0600
Actually, I need to do this in Model/Readers, but only if the CMake
variable that indicates use of this option is turned on.
Specifically, I need to add to files to the source string indicating
which files to compile, I need to add /path/to/teem to the include
directories, and I need to be able to link against the teem library.
I anticipate that the current Models/Readers CMakeLists.txt should be
modifed to look something like this:
SET (Manta_Readers_SRCS
Readers/glm/glm.h
Readers/glm/glm.cc
Readers/rply/rply.c
Readers/BART/kbsplpos.c
Readers/BART/kbsplrot.c
Readers/BART/parse.cc
Readers/BART/quat.c
Readers/IW.cc
Readers/PlyReader.cc
Readers/V3C1.h
Readers/V3C1.cc
)
# Apple places malloc.h in /usr/include/malloc/malloc.h
IF (APPLE)
INCLUDE_DIRECTORIES(/usr/include/malloc/)
ENDIF (APPLE)
# Reader for NRRD particle data
SET(MODEL_PARTICLENRRD 0 CACHE BOOL "NRRD Particle Data Reader")
IF(MODEL_PARTICLENRRD)
# add the following to Manta_Readers_SRCS:
# Readers/ParticleNRRD.h
# Readers/ParticleNRRD.cc
# add teem include directory
# add teem library
ENDIF(MODEL_PARTICLENRRD)
I'm just not savvy enough with Manta's CMake structure to make this
happen. Tips or pointers appreciated.
C
On May 15, 2006, at 2:02 PM, Christiaan Paul Gribble wrote:
Hi,
I've got a scene file that uses NRRD to read some input data. I've
added the scene to CMakeLists.txt in the scene/ directory, but it
won't build because "-I/path/to/teem" doesn't show up in the build
command. How do I add this to the CMakeLists.txt so that it will
show up?
Thanks,
C
Archive powered by MHonArc 2.6.16.