starting using compile commands instead

This commit is contained in:
talksik
2023-10-04 19:06:51 -07:00
parent c626f8bd46
commit 3737371a86
5 changed files with 13 additions and 2 deletions
Binary file not shown.
-2
View File
@@ -1,2 +0,0 @@
CompileFlags:
Add: [-I/usr/include/gstreamer-1.0, -I/usr/include/glib-2.0, -I/usr/lib/x86_64-linux-gnu/glib-2.0/include]
+3
View File
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.15)
project(HelloWorld)
# compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 14)
set (source_dir "./src")
+7
View File
@@ -0,0 +1,7 @@
[
{
"directory": "/home/talksik/code/cpp_read_file_example/build",
"command": "/usr/bin/c++ -I/home/talksik/code/cpp_read_file_example/./src -g -std=gnu++14 -o CMakeFiles/HelloWorld.dir/src/Main.cpp.o -c /home/talksik/code/cpp_read_file_example/src/Main.cpp",
"file": "/home/talksik/code/cpp_read_file_example/src/Main.cpp"
}
]
+3
View File
@@ -9,4 +9,7 @@ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
make
cp ./compile_commands.json ../
./HelloWorld