add_library(survey SHARED survey.cpp)

add_dependencies(survey blogidev)

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

install(TARGETS survey DESTINATION lib/blogi/plugins)
