#-------------------------------------------------------------------
# This file is part of the CMake build system for Scol
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------

############################################################
# CmakeList file for template plugin (does nothing except teaching how to make a new plugin!)
############################################################

PROJECT(template)

# define header and source files for the library
set (TEMPLATE_HEADER_FILES
  include/Bloc.h
)

set (TEMPLATE_SOURCE_FILES
  src/Bloc.cpp
  src/template.cpp
)

# Add directories includes
include_directories(include)

# Add definition for P4 optimizations, warnings removal.
add_definitions(-DOPTI_P4 -D_CRT_SECURE_NO_WARNINGS)

# setup Scol plugin target
add_library(template
  ${Scol_LIB_TYPE}
  ${TEMPLATE_HEADER_FILES}
  ${TEMPLATE_SOURCE_FILES}
)
add_dependencies(template kernel)

# set the dll version.
#set_target_properties(template PROPERTIES VERSION ${Scol_VERSION} SOVERSION ${Scol_VERSION_MAJOR})
# target_link_libraries(template ${LIBRARIES}) // No dependencies for this sample plugin, so no further linking needed.

# install Scol
scol_config_plugin(template)
#install(FILES ${TEMPLATE_HEADER_FILES} DESTINATION include/SCOL/plugins/template)