PROJECT(bear_generic_items)
SET( GENERIC_ITEM_TARGET_NAME bear_generic_items )

INCLUDE_DIRECTORIES(
  ${BEAR_ENGINE_INCLUDE_DIRECTORY}
  ${BEAR_GENERIC_ITEMS_INCLUDE_DIRECTORY}
  )

#-------------------------------------------------------------------------------
SET( GENERIC_ITEM_SOURCE_FILES
  code/base_train.cpp
  code/change_friction_item.cpp
  code/decorative_item.cpp
  code/delayed_level_loading.cpp
  code/falling_block.cpp
  code/invisible_block.cpp
  code/invisible_slope.cpp
  code/invisible_straight_slope.cpp  
  code/level_loader_item.cpp
  code/pendulum.cpp
  code/platform_with_two_elastics.cpp
  code/players_finish_level.cpp
  code/reference_item.cpp
  code/timer_item.cpp
  code/visible_block.cpp
  code/visible_slope.cpp
  code/visible_straight_slope.cpp  
  collision_event/code/collision_event_slope.cpp
  layer/code/action_layer.cpp
  layer/code/decoration_layer.cpp
  layer/code/pattern_layer.cpp
  )

ADD_LIBRARY( ${GENERIC_ITEM_TARGET_NAME} SHARED ${GENERIC_ITEM_SOURCE_FILES} )
INSTALL(
  TARGETS ${GENERIC_ITEM_TARGET_NAME}
  DESTINATION ${BEAR_INSTALL_LIBRARY_DIR}
  )

TARGET_LINK_LIBRARIES(
  ${GENERIC_ITEM_TARGET_NAME}
  bear_engine
  )
