Skip to content

Commit

Permalink
Refac CMake 10
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 18, 2023
1 parent 9c38dec commit 0df59c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hello_imgui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ set(imgui_backends_dir ${HELLOIMGUI_IMGUI_SOURCE_DIR}/backends)


###################################################################################################
# Add library and sources: API = him_add_target
# Add library and sources: API = him_add_hello_imgui
###################################################################################################
function(him_add_target)
function(him_add_hello_imgui)
if (APPLE)
file(GLOB_RECURSE sources *.h *.cpp *.c *.mm)
else()
Expand All @@ -45,9 +45,6 @@ endfunction()
function(him_build_imgui)
_him_checkout_imgui_submodule_if_needed()
_him_do_build_imgui()
if (HELLOIMGUI_WITH_TEST_ENGINE)
add_imgui_test_engine()
endif()
endfunction()

function(_him_checkout_imgui_submodule_if_needed)
Expand Down Expand Up @@ -523,7 +520,10 @@ endfunction()
function(him_main)
him_sanity_checks()
him_build_imgui()
him_add_target()
him_add_hello_imgui()
if (HELLOIMGUI_WITH_TEST_ENGINE)
add_imgui_test_engine()
endif()

if (HELLOIMGUI_USE_SDL_OPENGL3)
him_use_opengl3_backend(${helloimgui_target})
Expand Down

0 comments on commit 0df59c1

Please sign in to comment.