Commit 0fe52299 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtknetcdfcpp: add a CMake build system

parent c83685bb
project(vtknetcdfcpp CXX)
vtk_add_library(vtknetcdfcpp
cxx/netcdf.cpp
cxx/ncvalues.cpp)
set_target_properties(vtknetcdfcpp
PROPERTIES
VERSION 4.2.0
OUTPUT_NAME vtknetcdf_c++)
vtk_module_load(vtknetcdf)
target_link_libraries(vtknetcdfcpp
PUBLIC
${vtknetcdf_LIBRARIES})
set(headers
cxx/ncvalues.h
cxx/netcdfcpp.h)
foreach (header IN LISTS headers)
get_filename_component(header_name "${header}" NAME)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${header}"
"${CMAKE_CURRENT_BINARY_DIR}/${header_name}"
COPYONLY)
endforeach ()
if (NOT VTK_INSTALL_NO_DEVELOPMENT)
install(
FILES ${headers}
DESTINATION "${VTK_INSTALL_INCLUDE_DIR}/vtknetcdfcpp/cxx"
COMPONENT Development)
endif ()
......@@ -8,3 +8,4 @@ library within a single process.
* Add attributes to pass commit checks within VTK.
* Removal of `config.h` since none of its symbols are used.
* Add a CMake build system to the project.
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