Skip to content
This repository was archived by the owner on Jan 28, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Quartz/ThirdParty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,15 @@ add_subdirectory(lua)
# stop SDL trying to control our main function.
add_definitions(-DSDL_MAIN_HANDLED)

# FIX: @ThirdParty @ImGUI
# Properly specify which interface (ie. glad) to use with ImGui_ImplOpenGL3.h
# otherwise it guesses which interface to use and may throw a linker error.
#
# NOTE:
# Should replace -> https://cmake.org/cmake/help/latest/command/add_definitions.html
# with this -> https://cmake.org/cmake/help/latest/command/add_compile_definitions.html#command:add_compile_definitions
# if we migrate / update to the latest version of cmake.
add_definitions(-DIMGUI_IMPL_OPENGL_LOADER_GLAD)

set_target_properties(glad imgui PROPERTIES FOLDER QuartzDependencies)
set_target_properties(SDL2main SDL2-static uninstall PROPERTIES FOLDER QuartzDependencies/sdl2)