# Find the ParameterSerializer includes and library
#
# ParameterSerializer_INCLUDE_DIRS - list of directories with headers.
# ParameterSerializer_LIBRARIES - list of libraries to link against.
# ParameterSerializer_FOUND - set to 1 if found.

set( ParameterSerializer_FOUND 1 )

get_filename_component( ParameterSerializer_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH )

set( ParameterSerializer_INCLUDE_DIRS "@ParameterSerializer_INCLUDE_DIRS@" )

# We need to let CMake know the location of the json library.
set( used_jsoncpp_config "@JsonCpp_DIR@/JsonCppConfig.cmake" )
if( NOT DEFINED JsonCpp_LIBRARIES AND EXISTS "${used_jsoncpp_config}" )
  include( "${used_jsoncpp_config}" )
endif()
if( NOT ParameterSerializer_TARGETS_IMPORTED AND NOT ParameterSerializer_BINARY_DIR )
  set( ParameterSerializer_TARGETS_IMPORTED 1 )
  include( "${ParameterSerializer_CMAKE_DIR}/ParameterSerializerTargets.cmake" )
endif()
set( ParameterSerializer_LIBRARIES "@ParameterSerializer_LIBRARIES@" )

# Find the ParameterSerializer includes and library
#
# ParameterSerializer_INCLUDE_DIRS - list of directories with headers.
# ParameterSerializer_LIBRARIES - list of libraries to link against.
# ParameterSerializer_FOUND - set to 1 if found.

set( ParameterSerializer_FOUND 1 )

get_filename_component( ParameterSerializer_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH )

set( ParameterSerializer_INCLUDE_DIRS "@ParameterSerializer_INCLUDE_DIRS@" )

find_package(ITK REQUIRED)
set(ITK_FOUND FALSE)

# We need to let CMake know the location of the json library.
set( used_jsoncpp_config "@JsonCpp_DIR@/JsonCppConfig.cmake" )
if( NOT DEFINED JsonCpp_LIBRARIES AND EXISTS "${used_jsoncpp_config}" )
  include( "${used_jsoncpp_config}" )
endif()
if( NOT ParameterSerializer_TARGETS_IMPORTED AND NOT ParameterSerializer_BINARY_DIR )
  set( ParameterSerializer_TARGETS_IMPORTED 1 )
  include( "${ParameterSerializer_CMAKE_DIR}/ParameterSerializerTargets.cmake" )
endif()
set( ParameterSerializer_LIBRARIES "@ParameterSerializer_LIBRARIES@" )

Fix ITK targets within find_package()
Fix ITK targets within find_package()

GenerateCLP was failing to build with JsonCpp and ParameterSerializer using a static ITK.

Scanning dependencies of target GenerateCLP
[ 92%] Building CXX object GenerateCLP/CMakeFiles/GenerateCLP.dir/GenerateCLP.cxx.o
Linking CXX executable bin/GenerateCLP
/usr/bin/ld: cannot find -litkNetlibSlatec
/usr/bin/ld: cannot find -lITKStatistics
/usr/bin/ld: cannot find -lITKMesh
/usr/bin/ld: cannot find -litkzlib
/usr/bin/ld: cannot find -lITKMetaIO
/usr/bin/ld: cannot find -lITKSpatialObjects
...