Finalise template
This commit is contained in:
parent
53b9bb2d72
commit
e365dc6354
|
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.23)
|
cmake_minimum_required(VERSION 3.23)
|
||||||
|
|
||||||
project(discern)
|
project(template)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
@ -8,9 +8,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
#string(REPLACE ":" ";" INCLUDE_LIST $ENV{CMAKE_STDLIB})
|
#string(REPLACE ":" ";" INCLUDE_LIST $ENV{CMAKE_STDLIB})
|
||||||
#include_directories($ENV{CMAKE_STDLIB})
|
#include_directories($ENV{CMAKE_STDLIB})
|
||||||
|
|
||||||
add_executable(discern)
|
add_executable(template)
|
||||||
|
|
||||||
target_sources(discern
|
target_sources(template
|
||||||
PRIVATE
|
PRIVATE
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
|
||||||
15
default.nix
15
default.nix
|
|
@ -1,13 +1,14 @@
|
||||||
with (import <nixpkgs> {});
|
with (import <nixpkgs> {});
|
||||||
|
|
||||||
clangStdenv.mkDerivation {
|
clangStdenv.mkDerivation {
|
||||||
name = "discern";
|
name = "template";
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
cmake
|
cmake
|
||||||
|
|
||||||
clang-tools
|
clang-tools
|
||||||
clang
|
clang
|
||||||
];
|
];
|
||||||
|
|
||||||
CXXFLAGS = "-isystem${pkgs.gcc.cc}/include/c++/14.3.0 -isystem${pkgs.gcc.cc}/include/c++/14.3.0/x86_64-unknown-linux-gnu -isystem${pkgs.glibc.dev}/include";
|
# Workaround as Clangd cannot see std header files, so include set of files manually just for Clangd
|
||||||
|
CXXFLAGS = "-isystem${pkgs.gcc.cc}/include/c++/14.3.0 -isystem${pkgs.gcc.cc}/include/c++/14.3.0/x86_64-unknown-linux-gnu -isystem${pkgs.glibc.dev}/include";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue