CMAKE_MINIMUM_REQUIRED (VERSION 2.4 FATAL_ERROR)
PROJECT (playerplugin_examples)

# Include this CMake module to get most of the settings needed to build
SET (CMAKE_MODULE_PATH "/usr/share/cmake/Modules")
INCLUDE (UsePlayerPlugin)
INCLUDE (UsePlayerC)

INCLUDE_DIRECTORIES (${PROJECT_BINARY_DIR})
PLAYER_ADD_PLUGIN_INTERFACE (example 128_example.def SOURCES eginterf_client.c)
# Note the use of files generated during the PLAYER_ADD_PLUGIN_INTERFACE step
PLAYER_ADD_PLUGIN_DRIVER (example_driver SOURCES eginterf_driver.cc example_interface.h example_xdr.h)
PLAYER_ADD_PLAYERC_CLIENT (example_client SOURCES example_client.c example_interface.h)
TARGET_LINK_LIBRARIES (example_client example)
