Commit 0a5f68fc authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri

Fix test compile error due to wrong function signature

parent 615f9c49
FIND_PACKAGE(GLUT REQUIRED) FIND_PACKAGE(GLUT REQUIRED)
VTK_ADD_TEST_CXX(${vtk-module}CxxTests tests
TestGLUTRenderWindow.cxx
)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${GLUT_INCLUDE_DIR} ${GLUT_INCLUDE_DIR}
) )
VTK_ADD_TEST_CXX(${vtk-module}CxxTests tests
TestGLUTRenderWindow.cxx
)
VTK_TEST_CXX_EXECUTABLE(${vtk-module}CxxTests tests) VTK_TEST_CXX_EXECUTABLE(${vtk-module}CxxTests tests)
TARGET_LINK_LIBRARIES(${vtk-module}CxxTests LINK_PRIVATE TARGET_LINK_LIBRARIES(${vtk-module}CxxTests LINK_PRIVATE
vtkRenderingExternal ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}) vtkRenderingExternal ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
......
...@@ -60,10 +60,10 @@ static int windowId = -1; ...@@ -60,10 +60,10 @@ static int windowId = -1;
static int windowH = 301; static int windowH = 301;
static int windowW = 300; static int windowW = 300;
static void MakeCurrentCallback(vtkObject* caller, static void MakeCurrentCallback(vtkObject* vtkNotUsed(caller),
long unsigned int eventId, long unsigned int vtkNotUsed(eventId),
void * clientData, void * vtkNotUsed(clientData),
void * callData) void * vtkNotUsed(callData))
{ {
if (initialized) if (initialized)
{ {
...@@ -168,7 +168,7 @@ void onexit(void) ...@@ -168,7 +168,7 @@ void onexit(void)
} // end anon namespace } // end anon namespace
/* Main function: GLUT runs as a console application starting at main() */ /* Main function: GLUT runs as a console application starting at main() */
int TestGLUTRenderWindow(int argc, char** argv) int TestGLUTRenderWindow(int argc, char* argv[])
{ {
NumArgs = argc; NumArgs = argc;
ArgV = argv; ArgV = argv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment