Define IMGUI_DEFINE_MATH_OPERATORS in CMakeLists instead of in each file
This commit is contained in:
@@ -144,6 +144,7 @@ target_link_libraries(wivrn
|
||||
target_compile_definitions(wivrn PRIVATE -DXR_USE_GRAPHICS_API_VULKAN)
|
||||
target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0)
|
||||
target_compile_definitions(wivrn PRIVATE -DGLM_ENABLE_EXPERIMENTAL)
|
||||
target_compile_definitions(wivrn PRIVATE IMGUI_DEFINE_MATH_OPERATORS)
|
||||
|
||||
target_include_directories(wivrn PRIVATE .)
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "imgui_impl.h"
|
||||
#include "implot.h"
|
||||
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "ui_widgets.h"
|
||||
|
||||
#include "imgui.h"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "app_launcher.h"
|
||||
|
||||
#include "application.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
// ui:: widget for each, rebuilt every frame so dynamic options/descriptions just work
|
||||
// same pages serve the lobby and the in-stream window, gated by ctx.in_game
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "scenes/gui_common.h"
|
||||
|
||||
#include "gui_settings.h"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "application.h"
|
||||
#include "configuration.h"
|
||||
#include "constants.h"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "lobby.h"
|
||||
|
||||
#include "application.h"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "lobby.h"
|
||||
|
||||
#include "application.h"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "lobby_keyboard.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
#include "stream.h"
|
||||
|
||||
#include "application.h"
|
||||
|
||||
Reference in New Issue
Block a user