Index: lib/MsgUtils/CMakeLists.txt =================================================================== diff -u -r864d025811eb43fd2592bde174e5cb41fa10d783 -r1215f79d3e88a2e63274bf93d27382040464c635 --- lib/MsgUtils/CMakeLists.txt (.../CMakeLists.txt) (revision 864d025811eb43fd2592bde174e5cb41fa10d783) +++ lib/MsgUtils/CMakeLists.txt (.../CMakeLists.txt) (revision 1215f79d3e88a2e63274bf93d27382040464c635) @@ -3,15 +3,14 @@ LANGUAGES CXX ) -set(CMAKE_VERBOSE_MAKEFILE ON) - set(CMAKE_AUTOMOC ON) if(POLICY CMP0167) cmake_policy(SET CMP0167 NEW) endif() -find_package(Protobuf COMPONENTS REQUIRED) +find_package(Protobuf REQUIRED) +find_package(absl REQUIRED) find_package(Python3 REQUIRED COMPONENTS Interpreter) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network SerialBus) @@ -157,6 +156,9 @@ target_link_libraries(${PROJECT_NAME} PUBLIC ${Protobuf_LIBRARIES} + absl::log + absl::log_internal_check_op + absl::log_internal_message Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::SerialBus @@ -178,19 +180,12 @@ LIBRARY DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/lib" COMPONENT dev ) -# set up include-directories -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}") - # Add all targets to the build-tree export set export( TARGETS ${PROJECT_NAME} FILE "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${PROJECT_NAME}Targets.cmake" ) -# Export the package for use from the build-tree (this registers the build-tree -# with a global CMake-registry) -export(PACKAGE ${PROJECT_NAME}) - file(RELATIVE_PATH REL_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${CMAKE_CURRENT_SOURCE_DIR}/include") set(CONF_INCLUDE_DIRS "\${MSGUTILS_CMAKE_DIR}/${REL_INCLUDE_DIR}")