Skip to content

Commit 418552c

Browse files
committed
cmake : add option to enable/disable install of imgui headers
1 parent e600ffc commit 418552c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ option(IMTUI_SUPPORT_CURL "imtui: support for libcurl" ${IMTUI_SUPPOR
4141

4242
option(IMTUI_BUILD_EXAMPLES "imtui: build examples" ${IMTUI_STANDALONE})
4343

44+
option(IMTUI_INSTALL_IMGUI_HEADERS "imtui: install Dear ImGui's header files" ${IMTUI_STANDALONE})
45+
4446
# sanitizers
4547

4648
if (IMTUI_SANITIZE_THREAD)

third-party/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (MINGW)
3838
set_target_properties(imgui-for-imtui PROPERTIES COMPILE_FLAGS -fno-threadsafe-statics)
3939
endif()
4040

41-
if (IMTUI_STANDALONE AND NOT EMSCRIPTEN)
41+
if (IMTUI_INSTALL_IMGUI_HEADERS AND NOT EMSCRIPTEN)
4242
install(
4343
FILES
4444
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui/imgui.h

0 commit comments

Comments
 (0)