Add mac-specific compile pathway
This commit is contained in:
parent
21342ee36c
commit
e52eb66fce
|
@ -2,6 +2,8 @@ PROJECT ( example )
|
||||||
|
|
||||||
cmake_minimum_required( VERSION 3.16 )
|
cmake_minimum_required( VERSION 3.16 )
|
||||||
|
|
||||||
|
#add_compile_options(-DMAC)
|
||||||
|
|
||||||
FIND_PACKAGE ( PkgConfig REQUIRED )
|
FIND_PACKAGE ( PkgConfig REQUIRED )
|
||||||
PKG_CHECK_MODULES( GTK REQUIRED gtkmm-3.0)
|
PKG_CHECK_MODULES( GTK REQUIRED gtkmm-3.0)
|
||||||
INCLUDE_DIRECTORIES ( ${GTK_INCLUDE_DIRS} )
|
INCLUDE_DIRECTORIES ( ${GTK_INCLUDE_DIRS} )
|
||||||
|
|
2
main.cpp
2
main.cpp
|
@ -1,4 +1,4 @@
|
||||||
#include <gtkmm.h>
|
#include "platform_includes.h"
|
||||||
|
|
||||||
using namespace Glib;
|
using namespace Glib;
|
||||||
using namespace Gtk;
|
using namespace Gtk;
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#if defined MAC
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
#else
|
||||||
|
#include <gtkmm.h>
|
||||||
|
#endif
|
Loading…
Reference in New Issue