LLPlugin.cmake 722 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- cmake -*-
  2. if (LLPLUGIN_CMAKE_INCLUDED)
  3. return()
  4. endif (LLPLUGIN_CMAKE_INCLUDED)
  5. set (LLPLUGIN_CMAKE_INCLUDED TRUE)
  6. include(00-BuildOptions)
  7. include_directories(${CMAKE_SOURCE_DIR}/llplugin)
  8. set(LLPLUGIN_LIBRARIES llplugin)
  9. if (WINDOWS)
  10. if (USE_NETBIOS)
  11. set(NETWORK_LIBS netapi32 iphlpapi)
  12. else (USE_NETBIOS)
  13. set(NETWORK_LIBS iphlpapi)
  14. endif (USE_NETBIOS)
  15. set(PLUGIN_API_LIBRARIES
  16. wsock32
  17. ws2_32
  18. psapi
  19. ${NETWORK_LIBS}
  20. advapi32
  21. user32
  22. # Needed by VS2017 to avoid missing printf/scanf/_iob symbols
  23. legacy_stdio_definitions
  24. )
  25. elseif (LINUX)
  26. set(PLUGIN_API_LIBRARIES X11 pthread)
  27. else (WINDOWS)
  28. set(PLUGIN_API_LIBRARIES "")
  29. endif (WINDOWS)