6 # Disable cleaning of custom command outputs to preserve the hacks
7 # used to generate the files using CONFIGURE_FILE.
8 SET_DIRECTORY_PROPERTIES(PROPERTIES CLEAN_NO_CUSTOM 1)
13 SET (LIBRARY_OUTPUT_PATH
14 ${Wrapping_BINARY_DIR}/bin/ CACHE PATH
15 "Single output directory for building all libraries.")
17 SET (EXECUTABLE_OUTPUT_PATH
18 ${Wrapping_BINARY_DIR}/bin/ CACHE PATH
19 "Single output directory for building all executables.")
22 # Where will executable tests be written ?
24 IF (EXECUTABLE_OUTPUT_PATH)
25 SET (CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH})
26 ELSE (EXECUTABLE_OUTPUT_PATH)
28 ENDIF (EXECUTABLE_OUTPUT_PATH)
33 ADD_EXECUTABLE (wrapping wrapping.cxx)
35 ADD_EXECUTABLE (Wrap Wrap.c)
39 SET(WRAP ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/Wrap${EXE_EXT})
54 # Specify (empty) VTK hint files
56 FIND_FILE(VTK_WRAP_HINTS hints ${Wrapping_SOURCE_DIR})
61 SET (VTK_WRAP_TCL "On")
62 SET (VTK_WRAP_TCL_EXE "${WRAP}")
63 VTK_WRAP_TCL (wraplibTCL TCL_SRCS SRCS)
64 ADD_CUSTOM_TARGET(wraplibTCL ALL
65 ${CMAKE_COMMAND} -E echo "dummy target"
71 SET (VTK_WRAP_PYTHON "On")
72 SET (VTK_WRAP_PYTHON_EXE "${WRAP}")
73 VTK_WRAP_PYTHON (wraplibPython Python_SRCS SRCS)
74 ADD_CUSTOM_TARGET(wraplibPython ALL
75 ${CMAKE_COMMAND} -E echo "dummy target"
81 # VTK_WRAP_JAVA puts dependencie between wraplibJavaJavaClasses (in ALL)
82 # and each Java wrapped class (here, vtkIncluded, so let's create a dummy one
83 # so that the build succeeds.
85 SET (VTK_WRAP_JAVA "On")
86 SET (VTK_WRAP_JAVA_EXE "${WRAP}")
87 SET (VTK_PARSE_JAVA_EXE "${WRAP}")
88 SET (VTK_JAVA_HOME "${Wrapping_BINARY_DIR}/java")
89 VTK_WRAP_JAVA (wraplibJava Java_SRCS SRCS)
91 ${Wrapping_SOURCE_DIR}/dummy
92 ${VTK_JAVA_HOME}/vtkIncluded.java
94 ADD_CUSTOM_TARGET(wraplibJava ALL
95 ${CMAKE_COMMAND} -E echo "dummy target"
102 SET (QT_WRAP_CPP "On")
103 SET (QT_MOC_EXE "echo")
105 INCLUDE( ${CMAKE_ROOT}/Modules/FindQt.cmake )
109 INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
110 INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} )
113 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/foo.ui.in
114 ${CMAKE_CURRENT_BINARY_DIR}/foo.ui IMMEDIATE)
116 SET (QT_WRAP_UI "On")
117 SET (QT_UIC_EXE "${QT_UIC_EXECUTABLE}")
122 ${CMAKE_CURRENT_BINARY_DIR}/foo.ui
124 QT_WRAP_UI (myqtlib QTUI_H_SRCS QTUI_S_SRCS ${QTUI_SRCS})
125 QT_WRAP_CPP (myqtlib QT_MOC_SRCS ${SRCS} vtkTestMoc.h)
127 MESSAGE("QT files are ${QTUI_S_SRCS}")
128 MESSAGE("QT other files are ${QTUI_H_SRCS}")
129 ADD_DEFINITIONS(${QT_DEFINITIONS})
130 ADD_LIBRARY(myqtlib ${QTUI_S_SRCS} ${QT_MOC_SRCS})
131 ADD_EXECUTABLE (qtwrapping qtwrappingmain.cxx)
132 TARGET_LINK_LIBRARIES(qtwrapping myqtlib)
134 TARGET_LINK_LIBRARIES( qtwrapping ${QT_LIBRARIES} )
140 # Since FLTK_FLUID_EXE is supposed to create a .cxx/.h from a .fl/.fld,
141 # create an empty one so that the dependencies can be met.
146 SET (FLTK_WRAP_UI "On")
147 SET (FLTK_FLUID_EXECUTABLE "echo")
148 FLTK_WRAP_UI (wraplibFLTK FLTK_SRCS)
149 ADD_LIBRARY (wraplibFLTK)
151 ${Wrapping_SOURCE_DIR}/fltk1.fl
152 ${Wrapping_BINARY_DIR}/fltk1.cxx
159 ${Wrapping_SOURCE_DIR}/dummy
160 ${Wrapping_BINARY_DIR}/gl.h
162 USE_MANGLED_MESA (${Wrapping_BINARY_DIR} ${Wrapping_BINARY_DIR}/mangled_mesa)
167 VTK_MAKE_INSTANTIATOR(vtkWraplibInstantiator
170 EXPORT_MACRO VTK_WRAPLIB_EXPORT
171 HEADER_LOCATION ${Wrapping_BINARY_DIR}
178 SET(CABLE_INCLUDE_DIR ${Wrapping_SOURCE_DIR})
180 ITK_WRAP_TCL(wrapITK itkWrapperConfig.cxx)
181 CONFIGURE_FILE(${Wrapping_SOURCE_DIR}/itkWrapperConfig.cxx
182 ${Wrapping_BINARY_DIR}/itkWrapperConfig_tcl.cxx