Skip to content

Commit

Permalink
Generate compile_commands.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzka committed Nov 1, 2022
1 parent 4e5f183 commit 4414a2a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if(NOT GatzkaToolchainFiles_POPULATED)
endif()

project(cioall C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(CMAKE_CONFIGURATION_TYPES)
if(NOT "MemorySanitizer" IN_LIST CMAKE_CONFIGURATION_TYPES)
Expand Down
1 change: 1 addition & 0 deletions autobahn/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.9)
project(cio-autobahn C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_executable(autobahn_server
autobahn_server.c
Expand Down
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.9)
project(cio-examples C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_executable(socket_echo socket_echo.c)
add_executable(socket_connect socket_connect.c)
Expand Down
1 change: 1 addition & 0 deletions examples/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.9)
project(cio-examples-linux C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_executable(uds_socket_ping_pong
uds_socket_ping_pong.c
Expand Down
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.9)
project(cio VERSION 0.0.1 LANGUAGES C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

find_package(Git QUIET REQUIRED)
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/../.git")
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.9)
project(cio_unit_test C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
enable_testing()

add_library(fff INTERFACE)
Expand Down
1 change: 1 addition & 0 deletions tests/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.9)
project(cio_linux_unit_test C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
enable_testing()

set_source_files_properties(
Expand Down

0 comments on commit 4414a2a

Please sign in to comment.