We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c376c64 commit 9f5fee0Copy full SHA for 9f5fee0
testing/CMakeLists.txt
@@ -5,7 +5,9 @@ project(main C CXX)
5
6
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
7
8
-add_executable(main_app
9
- ${CMAKE_BINARY_SOURCE_DIR}main.c
+add_executable(main
+ ${CMAKE_CURRENT_SOURCE_DIR}/main.c
10
)
11
-target_include_directories(main_app PUBLIC ${CMAKE_BINARY_SOURCE_DIR})
+target_include_directories(main PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
12
+
13
+file(COPY ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}")
0 commit comments