Sure.
Here's the project layout:
./
imgui/
imgui.h
...
imgui-sfml/
imconfig-SFML.h
imgui-SFML.h
...
project/
imconfig.h
main.cpp
project/imconfig.h contains
#include <imgui-sfml/imconfig-SFML.h>
project/main.cpp contains
#include <imgui.h>
#include <imgui-sfml/imgui-SFML.h>
I have the project root directory, project/, and imgui/ folders as include directories, ie: "
-I$PROJECT_DIR -I$PROJECT_DIR/project -I$PROJECT_DIR/imgui"
This is needed because
imgui.h has
#include "imconfig.h", and
imgui-SFML.cpp has
#include <imgui.h>You'll also have to make sure you delete, (or rename)
imgui/imconfig.h, otherwise you'll run into conflicts at compile time with your
project/imconfig.hOr you could even just use
imgui/imconfig.h, and not have a
project/imconfig.h