CMakeLists.txt 1.23 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#============================================================================
##  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(unit_tests
22
23
  UnitTestMapperRayTracer.cxx
  UnitTestMapperVolume.cxx
24
)
25

26
set(libs)
27
28
29
30
31
32
33
34
35
if (OPENGL_FOUND)
  list(APPEND libs ${OPENGL_LIBRARIES})

  if (OSMESA_FOUND)
    set(unit_tests ${unit_tests}
      UnitTestMapperOSMesa.cxx
      )
    list(APPEND libs ${OSMESA_LIBRARY})
  endif()
36
37
endif()

38
VTKM_unit_tests(SOURCES ${unit_tests}
39
                LIBRARIES ${libs})