-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Exclude CImGui, ImPlot, ImNodes and ColorTextEditor by default
- Loading branch information
Showing
12 changed files
with
82 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
# https://github.com/ocornut/imgui with custom modifications made to the OpenGL 3 and SDL3 backends | ||
project(imgui_custom) | ||
project(imgui_backend) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
if (NOT FENESTRA_EXTERNAL_PLUGIN_BUILD) | ||
add_library(imgui_custom OBJECT | ||
add_library(imgui_backend OBJECT | ||
source/imgui_impl_opengl3.cpp | ||
source/imgui_impl_sdl3.cpp | ||
) | ||
add_library(imgui::backend ALIAS imgui_backend) | ||
|
||
target_include_directories(imgui_custom PUBLIC | ||
target_include_directories(imgui_backend PUBLIC | ||
include | ||
) | ||
|
||
target_link_libraries(imgui_custom PRIVATE imgui_includes) | ||
target_link_libraries(imgui_backend PRIVATE imgui_includes) | ||
|
||
find_package(OpenGL REQUIRED) | ||
|
||
target_include_directories(imgui_custom PUBLIC ${OpenGL_INCLUDE_DIRS}) | ||
target_link_directories(imgui_custom PUBLIC ${OpenGL_LIBRARY_DIRS}) | ||
target_link_libraries(imgui_custom PUBLIC SDL3::SDL3 ${OPENGL_LIBRARIES}) | ||
target_include_directories(imgui_backend PUBLIC ${OpenGL_INCLUDE_DIRS}) | ||
target_link_directories(imgui_backend PUBLIC ${OpenGL_LIBRARY_DIRS}) | ||
target_link_libraries(imgui_backend PUBLIC SDL3::SDL3 ${OPENGL_LIBRARIES}) | ||
endif() | ||
|
||
target_include_directories(imgui_all_includes INTERFACE include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters