-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
66 lines (45 loc) · 1.66 KB
/
premake5.lua
File metadata and controls
66 lines (45 loc) · 1.66 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
-- premake5.lua
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
function CreateExampleProject(projName)
project (projName)
kind "ConsoleApp"
language "C++"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/Examples/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/Examples/%{prj.name}")
location("%{wks.location}/Examples/%{prj.name}")
includedirs{
"%{wks.location}/Genetic_Algorithm_Cpp/include"
}
files { "Examples/%{prj.name}/**.h","Examples/%{prj.name}/**.hpp","Examples/%{prj.name}/**.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
end
workspace "Genetic_Algorithm_Cpp"
configurations { "Debug", "Release" }
architecture "x86_64"
startproject "basic_optimisation"
cppdialect "C++20"
project "Genetic_Algorithm_Cpp"
kind "StaticLib"
language "C++"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
location("%{wks.location}/%{prj.name}")
includedirs{
"%{wks.location}/%{prj.name}/include"
}
files { "%{wks.location}/%{prj.name}/**.hpp" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
CreateExampleProject("basic_optimisation")
CreateExampleProject("setting_custom_selection_function")
CreateExampleProject("pruning_population")
CreateExampleProject("three_dimensional_optimisation")