Skip to content

Commit

Permalink
chore: Add CMake presets for IDEs (now) and CI (later).
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 24, 2024
1 parent cfbd2bf commit d45e0e8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": 3,
"configurePresets": [
{
"name": "debug-default",
"binaryDir": "${sourceDir}/_build",
"generator": "Ninja",
"cacheVariables": {
"ASAN": true,
"DESKTOP_NOTIFICATIONS": true,
"SPELL_CHECK": true,
"STRICT_OPTIONS": true,
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
"CMAKE_EXPORT_COMPILE_COMMANDS": true
}
}
]
}
8 changes: 4 additions & 4 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ cc_library(
),
hdrs = glob(["**/*.h"]) + [":version"],
copts = [
"-iquoteqtox",
"-iquote$(GENDIR)/qtox",
"-Iqtox",
"-I$(GENDIR)/qtox",
] + select({
"//tools/config:freebsd": [],
"//tools/config:linux": ["-fPIC"],
Expand Down Expand Up @@ -229,8 +229,8 @@ cc_library(
name = "main",
srcs = ["main.cpp"],
copts = [
"-iquoteqtox",
"-iquote$(GENDIR)/qtox",
"-Iqtox",
"-I$(GENDIR)/qtox",
] + select({
"//tools/config:freebsd": [],
"//tools/config:linux": ["-fPIC"],
Expand Down

0 comments on commit d45e0e8

Please sign in to comment.