Skip to content

Instantly share code, notes, and snippets.

@dadrian
Last active August 29, 2015 14:23
Show Gist options
  • Save dadrian/c5ade6ee1fd6a5b8e3bc to your computer and use it in GitHub Desktop.
Save dadrian/c5ade6ee1fd6a5b8e3bc to your computer and use it in GitHub Desktop.
gtest premake5 example
solution "MySolution"
configurations { "Debug", "Release" }
filter { "configurations:Debug" }
defines { "DEBUG" }
flags { "Symbols" }
filter { "configurations:Release" }
defines { "NDEBUG" }
optimize "On"
filter { "system:linux" }
libdirs { "bin/linux", "/usr/local/lib" }
buildoptions "-std=c++11"
linkoptions "-pthread"
project "gtest_main"
language "C++"
kind "StaticLib"
includedirs { "include", "vendor/gtest" }
files { "vendor/gtest/src/*.cc", "/vendor/gtest/src/*.h" }
project "tests"
kind "ConsoleApp"
language "C++"
files { "src/*.h", "src/*.cc" }
includedirs { "vendor/gtest/include" }
links { "gtest_main" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment