# sources which should be compiled into the library
SET( SRCS  3do_height_map.cpp
           3do_plane.cpp
           3do_pose3.cpp
           3do_vector2.cpp
           3do_mesh.cpp
           3do_point_set.cpp
           3do_ray3.cpp
           3do_vector3.cpp )

# Build the library on 'make'
ADD_LIBRARY( 3dObjects SHARED ${SRCS} )

TARGET_LINK_LIBRARIES( 3dObjects PRIVATE ${OpenCV_LIBS} )
TARGET_INCLUDE_DIRECTORIES(3dObjects INTERFACE $<INSTALL_INTERFACE:include/lib3dObjects>)

# this should be kept in sync with the binary package name
# and be updated when the ABI (not just API) changes
SET_PROPERTY(TARGET 3dObjects PROPERTY VERSION ${LIB3DOBJECTS_VERSION})
SET_PROPERTY(TARGET 3dObjects PROPERTY SOVERSION 1)
# Install the library on 'make install'
INSTALL(TARGETS 3dObjects EXPORT Lib3dObjectsTargets LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
