RayTracingInVulkan icon indicating copy to clipboard operation
RayTracingInVulkan copied to clipboard

where to find the imguiConfig.cmake ,imgui-config.cmake, and tinyobjloaderConfig.cmake, and tinyobjloader-config.cmake?

Open disini opened this issue 1 year ago • 2 comments

Hi, I read the code for several days and I can run the program by following the readme. But I still want do debug the program using some IDE, e.g. CLion, QT Creator and Visual Studio, so I tried to compile the source code using the CMakeLists.txt file, and I've fixed some errors yet, but 2 libs left, imgui and tinyobjloader, the error log in Jetbrains Clion is like:

CMake Error at CMakeLists.txt:57 (find_package):
  Could not find a package configuration file provided by "imgui" with any of
  the following names:

    imguiConfig.cmake
    imgui-config.cmake

  Add the installation prefix of "imgui" to CMAKE_PREFIX_PATH or set
  "imgui_DIR" to a directory containing one of the above files.  If "imgui"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

I download several defferent versions of imgui and tinyobjloader lib, but I can't find any .cmake file in them,

so,

where to find the imguiConfig.cmake ,imgui-config.cmake, and tinyobjloaderConfig.cmake, and tinyobjloader-config.cmake?

Much Appreciated!

disini avatar Jan 17 '24 09:01 disini

You shouldn't have to install any dependencies, they're all installed by the vcpkg_* scripts.

On Windows, if you follow the README instructions, then there is nothing to do. The build script will create a Visual Studio solution file in the build/windows directory.

For other platforms, best is to look at their build script and change the CMake target to match your IDE.

GPSnoopy avatar Jan 17 '24 14:01 GPSnoopy