message("===== compile library =====") unset(ENABLE_LIBRARY_ERROR_CODE CACHE) OPTION(ENABLE_LIBRARY_ERROR_CODE "" ON) unset(ENABLE_LIBRARY_GOOGLE_LOG CACHE) OPTION(ENABLE_LIBRARY_GOOGLE_LOG "" ON) unset(ENABLE_LIBRARY_PCL CACHE) OPTION(ENABLE_LIBRARY_PCL "" ON) unset(ENABLE_LIBRARY_RABBITMQ CACHE) OPTION(ENABLE_LIBRARY_RABBITMQ "" ON) unset(ENABLE_LIBRARY_THREAD CACHE) OPTION(ENABLE_LIBRARY_THREAD "" ON) unset(ENABLE_LIBRARY_PLC CACHE) OPTION(ENABLE_LIBRARY_PLC "" OFF) unset(ENABLE_LIBRARY_JSON CACHE) OPTION(ENABLE_LIBRARY_JSON "" ON) unset(ENABLE_LIBRARY_FILE CACHE) OPTION(ENABLE_LIBRARY_FILE "" ON) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/message) message("==> ENABLE_LIBRARY_ERROR_CODE " ${ENABLE_LIBRARY_ERROR_CODE}) if (ENABLE_LIBRARY_ERROR_CODE) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/error_code) endif () message("==> ENABLE_LIBRARY_GOOGLE_LOG " ${ENABLE_LIBRARY_GOOGLE_LOG}) if (ENABLE_LIBRARY_GOOGLE_LOG) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/log) endif () message("==> ENABLE_LIBRARY_PCL " ${ENABLE_LIBRARY_PCL}) if (ENABLE_LIBRARY_PCL) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/pcl) endif () message("==> ENABLE_LIBRARY_RABBITMQ " ${ENABLE_LIBRARY_RABBITMQ}) if (ENABLE_LIBRARY_RABBITMQ) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/rabbitmq) endif () message("==> ENABLE_LIBRARY_THREAD " ${ENABLE_LIBRARY_THREAD}) if (ENABLE_LIBRARY_THREAD) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thread) endif () message("==> ENABLE_LIBRARY_PLC " ${ENABLE_LIBRARY_PLC}) if (ENABLE_LIBRARY_PLC) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/plc) endif () message("==> ENABLE_LIBRARY_JSON " ${ENABLE_LIBRARY_JSON}) if (ENABLE_LIBRARY_JSON) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/json) endif () message("==> ENABLE_LIBRARY_FILE " ${ENABLE_LIBRARY_FILE}) if (ENABLE_LIBRARY_FILE) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/file) endif ()