[vtkusers] kwsys in custom source
Dean Inglis
dean.inglis at sympatico.ca
Mon Mar 10 22:30:47 EDT 2008
Ok, I figure that in order to use some of the kwsys features, like
SystemInformation, I have to add kwsys subdir and code to my
project's (Teneos) Utilities subdir, as is done with Insight (ITK). In my
CMakeLists.txt within Utilities, I have:
#---------------------------------------------------------------------------
--
# Create the kwsys library for Teneos.
SET(KWSYS_NAMESPACE teneossys)
SET(KWSYS_USE_SystemInformation 1)
SET(KWSYS_HEADER_ROOT ${Teneos_BINARY_DIR}/Utilities)
SET(KWSYS_PROPERTIES_CXX ${Teneos_LIBRARY_PROPERTIES})
SET(KWSYS_LIBRARY_INSTALL_DIR)
IF(NOT Teneos_INSTALL_NO_LIBRARIES)
SET(KWSYS_LIBRARY_INSTALL_DIR ${Teneos_INSTALL_LIB_DIR})
ENDIF(NOT Teneos_INSTALL_NO_LIBRARIES)
SET(KWSYS_HEADER_INSTALL_DIR)
IF(NOT Teneos_INSTALL_NO_DEVELOPMENT)
SET(KWSYS_HEADER_INSTALL_DIR ${Teneos_INSTALL_INCLUDE_DIR}/Utilities)
ENDIF(NOT Teneos_INSTALL_NO_DEVELOPMENT)
SET(KWSYS_INSTALL_COMPONENT_NAME_RUNTIME RuntimeLibraries)
SET(KWSYS_INSTALL_COMPONENT_NAME_DEVELOPMENT Development)
SUBDIRS(kwsys)
However, when I go to use SystemInformation in an application that depends
on my Teneos library,
#include <teneossys/SystemInformation.hxx>
the compiler says it cant find the include file. In my build of Teneos,
there is
a directory with that file in it though. What am I missing here? Please cc
me directly as I cannot review the latest vtkusers archives in my browser.
Dean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080310/c3b20272/attachment.htm>
More information about the vtkusers
mailing list