CMakeLists.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. message("===== compile library =====")
  2. unset(ENABLE_LIBRARY_ERROR_CODE CACHE)
  3. OPTION(ENABLE_LIBRARY_ERROR_CODE "" ON)
  4. unset(ENABLE_LIBRARY_GOOGLE_LOG CACHE)
  5. OPTION(ENABLE_LIBRARY_GOOGLE_LOG "" ON)
  6. unset(ENABLE_LIBRARY_PCL CACHE)
  7. OPTION(ENABLE_LIBRARY_PCL "" ON)
  8. unset(ENABLE_LIBRARY_RABBITMQ CACHE)
  9. OPTION(ENABLE_LIBRARY_RABBITMQ "" ON)
  10. unset(ENABLE_LIBRARY_THREAD CACHE)
  11. OPTION(ENABLE_LIBRARY_THREAD "" ON)
  12. unset(ENABLE_LIBRARY_PLC CACHE)
  13. OPTION(ENABLE_LIBRARY_PLC "" OFF)
  14. unset(ENABLE_LIBRARY_JSON CACHE)
  15. OPTION(ENABLE_LIBRARY_JSON "" ON)
  16. unset(ENABLE_LIBRARY_FILE CACHE)
  17. OPTION(ENABLE_LIBRARY_FILE "" ON)
  18. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/message)
  19. message("==> ENABLE_LIBRARY_ERROR_CODE " ${ENABLE_LIBRARY_ERROR_CODE})
  20. if (ENABLE_LIBRARY_ERROR_CODE)
  21. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/error_code)
  22. endif ()
  23. message("==> ENABLE_LIBRARY_GOOGLE_LOG " ${ENABLE_LIBRARY_GOOGLE_LOG})
  24. if (ENABLE_LIBRARY_GOOGLE_LOG)
  25. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/log)
  26. endif ()
  27. message("==> ENABLE_LIBRARY_PCL " ${ENABLE_LIBRARY_PCL})
  28. if (ENABLE_LIBRARY_PCL)
  29. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/pcl)
  30. endif ()
  31. message("==> ENABLE_LIBRARY_RABBITMQ " ${ENABLE_LIBRARY_RABBITMQ})
  32. if (ENABLE_LIBRARY_RABBITMQ)
  33. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/rabbitmq)
  34. endif ()
  35. message("==> ENABLE_LIBRARY_THREAD " ${ENABLE_LIBRARY_THREAD})
  36. if (ENABLE_LIBRARY_THREAD)
  37. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thread)
  38. endif ()
  39. message("==> ENABLE_LIBRARY_PLC " ${ENABLE_LIBRARY_PLC})
  40. if (ENABLE_LIBRARY_PLC)
  41. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/plc)
  42. endif ()
  43. message("==> ENABLE_LIBRARY_JSON " ${ENABLE_LIBRARY_JSON})
  44. if (ENABLE_LIBRARY_JSON)
  45. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/json)
  46. endif ()
  47. message("==> ENABLE_LIBRARY_FILE " ${ENABLE_LIBRARY_FILE})
  48. if (ENABLE_LIBRARY_FILE)
  49. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/file)
  50. endif ()