Skip to content

Commit

Permalink
update vcpkg usage file
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 31, 2024
1 parent dfc2af4 commit 7682187
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hello_imgui_cmake/overlay_vcpkg/hello-imgui/usage
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
hello_imgui provides CMake targets and hello_imgui_add_app:

Usage with `hello_imgui_add_app`
set(CMAKE_CXX_STANDARD 17)
find_package(hello-imgui CONFIG REQUIRED)
hello_imgui_add_app(test test.cpp)

Usage with `target_link_libraries`
set(CMAKE_CXX_STANDARD 17)
find_package(hello_imgui CONFIG REQUIRED)
# Note the subtle difference between the package name and the target name: hello-imgui vs hello_imgui!
target_link_libraries(main PRIVATE hello-imgui::hello_imgui)
Expand Down

0 comments on commit 7682187

Please sign in to comment.