Skip to content

Commit

Permalink
Alter cmake setup to use vcpkg-based vsg, vsgchange. Embed vsgimgui c…
Browse files Browse the repository at this point in the history
…ode in rdemo.
  • Loading branch information
gwaldron committed Jun 4, 2024
1 parent b8a5a89 commit 799f240
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ endif()
# Main PROJECT definition
project(
rocky
VERSION 0.2.2
VERSION 0.3.2
DESCRIPTION "Rocky by Pelican Mapping"
HOMEPAGE_URL https://github.com/pelicanmapping/rocky
LANGUAGES CXX C
)

# please update this with each ABI change!!
set(PROJECT_VERSION_ABI 104)
set(PROJECT_VERSION_ABI 105)

# require C++17
set(CMAKE_CXX_STANDARD 17)
Expand Down
10 changes: 5 additions & 5 deletions src/apps/rdemo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
set(APP_NAME rdemo)

find_package(vsgImGui)
find_package(imgui)

if(vsgImGui_FOUND)
if(imgui_FOUND)
find_package(glslang CONFIG REQUIRED)

file(GLOB SOURCES *.cpp)
file(GLOB HEADERS *.h)
file(GLOB SOURCES *.cpp vsgImGui/*.cpp)
file(GLOB HEADERS *.h vsgImGui/*.h)

# enable folders for IDEs
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand All @@ -15,7 +15,7 @@ if(vsgImGui_FOUND)

add_executable(${APP_NAME} ${SOURCES} ${HEADERS})

target_link_libraries(${APP_NAME} rocky vsgImGui::vsgImGui)
target_link_libraries(${APP_NAME} rocky imgui::imgui)

install(TARGETS ${APP_NAME} RUNTIME DESTINATION bin)

Expand Down
2 changes: 1 addition & 1 deletion src/apps/rdemo/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/
#pragma once
#include <rocky/vsg/Application.h>
#include <vsgImGui/RenderImGui.h>
#include <vsg/commands/Command.h>
#include "vsgImGui/RenderImGui.h"

// handy nice-looking table with names on the left.
namespace ImGuiLTable
Expand Down
4 changes: 2 additions & 2 deletions src/apps/rdemo/rdemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <rocky/TMSElevationLayer.h>
#endif

#include <vsgImGui/RenderImGui.h>
#include <vsgImGui/SendEventsToImGui.h>
#include "vsgImGui/RenderImGui.h"
#include "vsgImGui/SendEventsToImGui.h"

ROCKY_ABOUT(imgui, IMGUI_VERSION)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"default-features": false,
"features": [ "recommended-features" ] },
"glm",
{ "name" : "imgui",
"features": [ "vulkan-binding" ] },
"imgui",
"nlohmann-json",
"openssl",
"qt5",
Expand All @@ -22,7 +25,6 @@
"vsg",
{ "name" : "vsgxchange",
"features": [ "assimp", "freetype" ] },
"vsgimgui",
"vsgqt",
"zlib"
]
Expand Down

0 comments on commit 799f240

Please sign in to comment.