From e2d55cef73981c24a140dd39d799a61d4a2fd43f Mon Sep 17 00:00:00 2001 From: Ivan Vodopiviz Date: Wed, 11 Jan 2017 12:44:40 -0300 Subject: [PATCH] Updated premakefile, addded NFD dependency for native file dialogs. --- src/main.cpp | 1 + src/premake5.lua | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e71dbed..6134330 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include #include "SDL.h" +#include "nfd.h" #include "Chip8.h" #define SCREEN_WIDTH 64 diff --git a/src/premake5.lua b/src/premake5.lua index 578a49f..4342821 100644 --- a/src/premake5.lua +++ b/src/premake5.lua @@ -7,8 +7,8 @@ workspace "Octo" kind "ConsoleApp" language "C++" files { "**.h", "**.cpp" } - includedirs { "depend/SDL2-2.0.5/include" } - libdirs { "depend/SDL2-2.0.5/lib/x86" } + includedirs { "depend/SDL2-2.0.5/include", "depend/nativefiledialog-master/src/include" } + libdirs { "depend/SDL2-2.0.5/lib/x86", "depend/nativefiledialog-master/build/lib/Release/x86" } debugargs { "pong2.c8" } debugdir "../" targetdir ("../") @@ -17,9 +17,9 @@ workspace "Octo" defines { "DEBUG" } flags { "Symbols" } targetsuffix "_d" - links { "SDL2", "SDL2main" } + links { "SDL2", "SDL2main", "nfd" } filter "configurations:Release" defines { "NDEBUG" } optimize "On" - links { "SDL2", "SDL2main" } \ No newline at end of file + links { "SDL2", "SDL2main", "nfd" } \ No newline at end of file