add_library(template SHARED template.cpp)

add_dependencies(template blogidev)

if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
    target_link_libraries(template PUBLIC kernel32.lib blogidev uuidp::uuidp)
else()
    target_link_libraries(template PUBLIC dl blogidev uuidp::uuidp)
endif()

install (TARGETS template  DESTINATION lib/blogi/plugins)
#
