-
Notifications
You must be signed in to change notification settings - Fork 5
Project Files
Demez edited this page Feb 16, 2020
·
3 revisions
Files are added with the files block.
Example:
files
{
folder "foo"
{
"bar.cpp"
"bar.h"
}
"baz.cpp"
}
Folders are only used in IDE's for organization, you can have as many sub folders as you want.
To remove a file, use - before it, like this: - "foo.cpp"
You can have as many files in a single line as you want.
files
{
folder "foo"
{
"bar.cpp" "bar.h"
}
"baz.cpp" \
"baz.h"
}
The \ connects the items across multiple lines.
You can also set compiler options for a specific file like this:
files
{
"foo.cpp"
{
precompiled_header "create"
precompiled_header_file "foo.h"
precompiled_header_out_file "foo.pch"
}
"bar.cpp"
{
precompiled_header "use"
precompiled_header_file "foo.h"
}
}
Basics:
Project Scripts
Generators: