-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
39 lines (31 loc) · 1.3 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
workspace "wave-function-collapse"
toolset "clang"
cppdialect "c++20"
configurations {"Debug", "Release"}
location "build"
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
project "wave-function-collapse-lib"
kind "StaticLib"
language "C++"
targetdir "build/lib/%{cfg.buildcfg}"
files { "src/wave-function-collapse-lib/**.cpp", "src/wave-function-collapse-lib/**.c" }
project "wave-function-collapse"
kind "ConsoleApp"
language "C++"
targetdir "build/bin/%{cfg.buildcfg}"
includedirs { "src/wave-function-collapse-lib/", "external/includes" }
files { "src/wave-function-collapse/*.cpp", "src/wave-function-collapse/renderer/*.cpp", "external/includes/src/gl.c" }
links { "wave-function-collapse-lib", "glfw", "GL" }
project "3d-wave-function-collapse"
kind "ConsoleApp"
language "C++"
targetdir "build/bin/%{cfg.buildcfg}"
libdirs { "external/vk-engine/build/lib/%{cfg.buildcfg}/" }
includedirs { "src/wave-function-collapse-lib/", "external/vk-engine/include", "external/vk-engine/external/imgui" }
files { "src/3d-wave-function-collapse/main.cpp" }
links { "fmt", "glfw", "vulkan", "vk-engine", "imgui", "fastgltf" }