# This file is a part of the OpenSurgSim project.
# Copyright 2012-2013, SimQuest Solutions Inc.
#
# 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.


include_directories(
	${EIGEN3_INCLUDE_DIR}
	${YAML_CPP_SOURCE_DIR}/src
	${YAML_CPP_SOURCE_DIR}/include
)

set(SURGSIM_SERIALIZE_SOURCES
)

set(SURGSIM_SERIALIZE_HEADERS
	Converter.h
	Converter-inl.h
)

surgsim_add_library(
	SurgSimSerialize
	"${SURGSIM_SERIALIZE_SOURCES}"
	"${SURGSIM_SERIALIZE_HEADERS}"
	"SurgSim/Serialize"
)

if(SURGSIM_TESTS_BUILD)
	add_subdirectory(UnitTests)
endif()

# This file is a part of the OpenSurgSim project.
# Copyright 2012-2013, SimQuest Solutions Inc.
#
# 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.


include_directories(
	${EIGEN3_INCLUDE_DIR}
	${YAML_CPP_SOURCE_DIR}/include
)

set(SURGSIM_SERIALIZE_SOURCES
)

set(SURGSIM_SERIALIZE_HEADERS
	Converter.h
	Converter-inl.h
)

surgsim_add_library(
	SurgSimSerialize
	"${SURGSIM_SERIALIZE_SOURCES}"
	"${SURGSIM_SERIALIZE_HEADERS}"
	"SurgSim/Serialize"
)

if(SURGSIM_TESTS_BUILD)
	add_subdirectory(UnitTests)
endif()

Remove yaml-cpp source files from include directories
Remove yaml-cpp source files from include directories

the yaml-cpp source directory was added to the include directories for
SurgSim::Serialize. This was causing issues as there is a regex.h file
in yaml-cpp that is conflicting with a regex.h that gtest uses.
