Add mac-specific compile pathway

This commit is contained in:
Matt McWilliams 2023-07-23 09:57:44 -04:00
parent 21342ee36c
commit e52eb66fce
3 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,8 @@ PROJECT ( example )
cmake_minimum_required( VERSION 3.16 )
#add_compile_options(-DMAC)
FIND_PACKAGE ( PkgConfig REQUIRED )
PKG_CHECK_MODULES( GTK REQUIRED gtkmm-3.0)
INCLUDE_DIRECTORIES ( ${GTK_INCLUDE_DIRS} )

View File

@ -1,4 +1,4 @@
#include <gtkmm.h>
#include "platform_includes.h"
using namespace Glib;
using namespace Gtk;

5
platform_includes.h Normal file
View File

@ -0,0 +1,5 @@
#if defined MAC
#include <gtk/gtk.h>
#else
#include <gtkmm.h>
#endif