## ======================================================================== ##
## Copyright 2009-2016 Intel Corporation                                    ##
##                                                                          ##
## Licensed under the Apache License, Version 2.0 (the "License");          ##
## you may not use this file except in compliance with the License.         ##
## You may obtain a copy of the License at                                  ##
##                                                                          ##
##     http://www.apache.org/licenses/LICENSE-2.0                           ##
##                                                                          ##
## Unless required by applicable law or agreed to in writing, software      ##
## distributed under the License is distributed on an "AS IS" BASIS,        ##
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
## See the License for the specific language governing permissions and      ##
## limitations under the License.                                           ##
## ======================================================================== ##

CONFIGURE_OSPRAY()

OSPRAY_CREATE_LIBRARY(tfn tfn_lib.cpp LINK ospray_common)

OSPRAY_CREATE_APPLICATION(CvtParaViewTfcn
  convertParaViewTfcn.cpp
  jsoncpp.cpp
LINK
  ospray_common
  ospray_tfn
)

## ======================================================================== ##
## Copyright 2009-2016 Intel Corporation                                    ##
##                                                                          ##
## Licensed under the Apache License, Version 2.0 (the "License");          ##
## you may not use this file except in compliance with the License.         ##
## You may obtain a copy of the License at                                  ##
##                                                                          ##
##     http://www.apache.org/licenses/LICENSE-2.0                           ##
##                                                                          ##
## Unless required by applicable law or agreed to in writing, software      ##
## distributed under the License is distributed on an "AS IS" BASIS,        ##
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
## See the License for the specific language governing permissions and      ##
## limitations under the License.                                           ##
## ======================================================================== ##

configure_ospray()

ospray_create_library(tfn tfn_lib.cpp LINK ospray_common)

option(OSPRAY_APPS_PARAVIEW_TFN_CVT
  "Build ParaView to OSPRay viewer transfer function converter"
  ON)

if (OSPRAY_APPS_PARAVIEW_TFN_CVT)
  ospray_create_application(CvtParaViewTfcn
    convertParaViewTfcn.cpp
    jsoncpp.cpp
  LINK
    ospray_common
    ospray_tfn
  )
endif()


Add CMake option to not build the ParaView transfer fcn converter
Add CMake option to not build the ParaView transfer fcn converter
