rm5248 commented on issue #229:
URL: 
https://github.com/apache/logging-log4cxx/issues/229#issuecomment-1806813370

   I was thinking that we just need some pages on the website, I don't think an 
actual example is needed(although it could be useful).  My thought was 
something like the following:
   
   To use with CMake, add the following:
   ```
   find_package(log4cxx)
   
   ...
   target_link_libraries(target PRIVATE log4cxx::log4cxx)
   ```
   
   To use with CMake using pkg-config, add the following:
   ```
   find_package(PkgConfig)
   pkg_check_modules( log4cxx REQUIRED liblog4cxx )
   ...
   target_link_libraries(target PRIVATE ${log4cxx_LIBRARIES})
   ```
   
   To use with vcpkg, add the following to your vcpkg.json:
   ```
   "dependencies": [
       {
         "name": "log4cxx",
         "version>=": "1.0.0#6"
       }
    }
   ```
   
   Here's a few possible examples we could add:
   
   - CMake
   - CMake with pkgconfig
   - CMake with Externalproject
   - Meson
   - vcpkg
   - conan
   - autotools
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to