vtk-m/vtkm/thirdparty/lcl/CMakeLists.txt
2022-12-09 18:46:56 -05:00

28 lines
974 B
CMake

##============================================================================
## 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.
##============================================================================
add_library(vtkm_lcl INTERFACE)
vtkm_get_kit_name(kit_name kit_dir)
# lcl needs C++11
target_compile_features(vtkm_lcl INTERFACE cxx_std_11)
target_include_directories(vtkm_lcl INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/vtkmlcl>
$<INSTALL_INTERFACE:${VTKm_INSTALL_INCLUDE_DIR}/vtkm/thirdparty/lcl/vtkmlcl>)
vtkm_install_targets(TARGETS vtkm_lcl)
## Install headers
if(NOT VTKm_INSTALL_ONLY_LIBRARIES)
install(DIRECTORY vtkmlcl
DESTINATION ${VTKm_INSTALL_INCLUDE_DIR}/${kit_dir}/)
endif()