# sources which should be compiled into the library
SET( SRCS gl2ps.c )

# Build the library on 'make'
ADD_LIBRARY( gl2ps SHARED ${SRCS} )
TARGET_LINK_LIBRARIES( gl2ps PRIVATE ${OPENGL_LIBRARIES} ${PNG_LIBRARIES} )

# Install the library on 'make install'

INSTALL_FILES(/include/lib3dRender gl2ps.h )

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

