September 2018
Intermediate to advanced
606 pages
14h 32m
English
Once again, the root CMakeLists.txt file is unchanged with respect to the previous recipe. Moving onto the leaf directory src containing our sources:
# Search for pkg-config and UUIDfind_package(PkgConfig QUIET)if(PKG_CONFIG_FOUND) pkg_search_module(UUID uuid IMPORTED_TARGET) if(TARGET PkgConfig::UUID) message(STATUS "Found libuuid") set(UUID_FOUND TRUE) endif()endif()
add_library(message-shared SHARED "")include(GenerateExportHeader)generate_export_header(message-shared BASE_NAME "message" EXPORT_MACRO_NAME "message_EXPORT" EXPORT_FILE_NAME ...
Read now
Unlock full access