CMakeLists.txt 1.22 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
##============================================================================
##  Copyright (c) Kitware, Inc.
##  All rights reserved.
##  See LICENSE.txt for details.
##  This software is distributed WITHOUT ANY WARRANTY; without even
##  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
##  PURPOSE.  See the above copyright notice for more information.
##
##  Copyright 2014 Sandia Corporation.
##  Copyright 2014 UT-Battelle, LLC.
##  Copyright 2014 Los Alamos National Security.
##
##  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
##  the U.S. Government retains certain rights in this software.
##
##  Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
##  Laboratory (LANL), the U.S. Government retains certain rights in
##  this software.
##============================================================================

set(headers
  TestingOpenGLInterop.h
  TestingWindow.h
  WindowBase.h
  )

set(unit_tests
  UnitTestTransferToOpenGL.cxx
  )

31
# Need glut for these tests
32 33
vtkm_configure_component_GLUT()
if(VTKm_GLUT_FOUND)
34 35 36 37 38 39
  vtkm_declare_headers(${headers})

  vtkm_unit_tests(SOURCES ${unit_tests})
else()
  message(STATUS "Interop tests disabled. They need GLUT.")
endif()