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

set(SURGSIM_PARTICLES_SOURCES
	DefaultPointGenerator.cpp
	Emitter.cpp
	ParticlesCollisionRepresentation.cpp
	PointGenerator.cpp
	RandomBoxPointGenerator.cpp
	RandomMeshPointGenerator.cpp
	RandomPointGenerator.cpp
	RandomSpherePointGenerator.cpp
	Representation.cpp
	Sink.cpp
	SphRepresentation.cpp
)

set(SURGSIM_PARTICLES_HEADERS
	DefaultPointGenerator.h
	Emitter.h
	Particles.h
	ParticlesCollisionRepresentation.h
	PointGenerator.h
	RandomBoxPointGenerator.h
	RandomMeshPointGenerator.h
	RandomPointGenerator.h
	RandomSpherePointGenerator.h
	Representation.h
	Sink.h
	SphRepresentation.h
)

surgsim_add_library(
	SurgSimParticles
	"${SURGSIM_PARTICLES_SOURCES}"
	"${SURGSIM_PARTICLES_HEADERS}"
)

SET(LIBS SurgSimMath)
target_link_libraries(SurgSimParticles ${LIBS})

if(BUILD_TESTING)
	add_subdirectory(UnitTests)
	if(BUILD_RENDER_TESTING)
		add_subdirectory(RenderTests)
	endif()
endif()

set_target_properties(SurgSimParticles PROPERTIES FOLDER "Particles")
