aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt11
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp10
2 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt
new file mode 100644
index 0000000..4d03bc6
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 3.30)
+project(hello-imgui-test CXX)
+
+set(CMAKE_CXX_STANDARD 17)
+
+find_package(hello-imgui CONFIG REQUIRED)
+
+add_executable(main main.cpp)
+target_link_libraries(main PRIVATE
+ hello-imgui::hello_imgui
+)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp
new file mode 100644
index 0000000..12433aa
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-hello-imgui/project/main.cpp
@@ -0,0 +1,10 @@
+#include <hello_imgui/hello_imgui.h>
+
+int main()
+{
+ HelloImGui::Run([]() {
+ ImGui::Text("Hello vcpkg");
+ ImGui::ShowDemoWindow();
+ });
+ return 0;
+}