Skip to content

Commit

Permalink
fix intellisense (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-Lentz authored Apr 25, 2024
1 parent 146fabc commit cb4f21d
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 59 deletions.
3 changes: 1 addition & 2 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"name": "CMake",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"includePath": [
"${workspaceFolder}/include",
"${workspaceFolder}/build/gen_protos/"
"${workspaceFolder}/include"
],
"cppStandard": "c++20"
}
Expand Down
15 changes: 0 additions & 15 deletions include/stdafx.h

This file was deleted.

9 changes: 0 additions & 9 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# DONT REMOVE THE DUMMY FILE!!! IT WILL SEEM LIKE IT IS OKAY BUT IT WILL BREAK THE NEXT TIME
# YOU RECLONE OR RM -RF THE BUILD DIRECTORY!!! DON'T BE A DUMMY!
add_library(obcpp_protos STATIC
${PROJECT_SOURCE_DIR}/build/gen_protos/protos/obc.pb.cc
dummy.c
)

# LOL
# https://stackoverflow.com/questions/68735830/cmake-precompiled-headers-issue-with-mixed-c-c-project
target_precompile_headers(obcpp_protos PUBLIC
"$<$<COMPILE_LANGUAGE:CXX>:\"stdafx.h\">"
"$<$<COMPILE_LANGUAGE:C>:<stddef.h$<ANGLE-R>>")

add_subdirectory(camera)
add_subdirectory(core)
add_subdirectory(cv)
Expand Down
1 change: 0 additions & 1 deletion src/camera/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down
1 change: 0 additions & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down
1 change: 0 additions & 1 deletion src/cv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down
25 changes: 0 additions & 25 deletions src/dummy.c

This file was deleted.

2 changes: 0 additions & 2 deletions src/network/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand All @@ -61,7 +60,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down
1 change: 0 additions & 1 deletion src/pathing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ add_library(${LIB_NAME} STATIC

target_link_libraries(${LIB_NAME} PRIVATE ${LIB_DEPS})

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down
1 change: 0 additions & 1 deletion src/ticks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down
1 change: 0 additions & 1 deletion src/utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ target_link_libraries(${LIB_NAME} PRIVATE
${LIB_DEPS}
)

target_precompile_headers(${LIB_NAME} REUSE_FROM obcpp_protos)
set_unity_for_target(${LIB_NAME})

target_add_protobuf(${LIB_NAME})
Expand Down

0 comments on commit cb4f21d

Please sign in to comment.