From 6e2fb7096e369853b4fd87c40a91c9ee7d810d8c Mon Sep 17 00:00:00 2001 From: Przemek <4788832+przemek83@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:25:44 +0100 Subject: [PATCH] Update README.md Add appropriate code for CMake code. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0688b41..fa9863b 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ As a result of compilation, binary for simulations and binary for testing should ### CMake integration Use `FetchContent` CMake module in your project: -``` +```cmake include(FetchContent) FetchContent_Declare( @@ -71,7 +71,7 @@ FetchContent_Declare( FetchContent_MakeAvailable(wble) ``` From that moment, wble library can be used in the `target_link_libraries` command: -``` +```cmake add_executable(${PROJECT_NAME} ${SOURCES}) target_link_libraries(${PROJECT_NAME} shared wble) ```