Skip to content

Commit

Permalink
Make tests project optional
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed May 12, 2024
1 parent 312b423 commit 1bdf2ed
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
newoption {
trigger = "with-tests",
description = "Include the tests project"
}

workspace "TRAE-menu-hook"
architecture "x86"
configurations { "Debug", "Release" }
platforms { "TR7", "TRAE", "TR8" }

-- Main project
project "TRAE-menu-hook"
kind "SharedLib"
targetextension ".asi"
Expand Down Expand Up @@ -44,6 +50,9 @@ project "TRAE-menu-hook"
defines { "TR8" }
targetname "TR8-Menu-Hook"

-- Tests
if _OPTIONS["with-tests"] then

project "Tests"
kind "ConsoleApp"

Expand All @@ -59,4 +68,7 @@ project "Tests"
includedirs { "src", "vendor/catch2/extras" }
dofile "vendor.lua"

defines { "TR7" }
-- Define this as dummy game
defines { "TR7" }

end

0 comments on commit 1bdf2ed

Please sign in to comment.