# sources which should be compiled into the library
SET( SRCS auv_config_file.cpp 
          auv_geometry.cpp 
          auv_random.cpp 
          auv_chi_square.cpp
          auv_time.cpp
          auv_matrix.cpp
	  auv_concurrency.cpp
          auv_system.cpp
	  auv_args.cpp
          auv_map_projection.cpp )

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

# When the next line is added, it seems that when a program uses libplankton,
# it only needs to link to libplankton, and boost-thread will be linked 
# automatically. Without this line, such a program would have list both
# libplankton and boost-threads when linking
TARGET_LINK_LIBRARIES( plankton ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${UF_GEOCONV_LIBRARY} )

set_property(TARGET plankton PROPERTY SOVERSION 0)

# Install the library on 'make install'
INSTALL(TARGETS plankton LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")

