2019-06-18 19:08:57 +00:00
|
|
|
##============================================================================
|
|
|
|
## 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.
|
|
|
|
##============================================================================
|
2020-04-22 18:10:41 +00:00
|
|
|
|
2022-08-23 01:54:49 +00:00
|
|
|
add_library(vtkm_lodepng OBJECT vtkmlodepng/lodepng.cpp)
|
2020-04-22 18:10:41 +00:00
|
|
|
|
2022-08-23 01:54:49 +00:00
|
|
|
# To be consumed by other potentially PIC libraries
|
|
|
|
set_target_properties(vtkm_lodepng PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
2020-04-22 18:10:41 +00:00
|
|
|
|
2022-08-23 01:54:49 +00:00
|
|
|
# This will not install anything but it is needed for CMake <= 3.21 since it
|
|
|
|
# does not fully support $<TARGET_OBJECTS> in target_link_library.
|
2022-12-09 23:46:56 +00:00
|
|
|
vtkm_install_targets(TARGETS vtkm_lodepng)
|