refactor(CMake): Update include directories for main target
- Reintroduced the target include directory for the main target to use a hardcoded path. - Removed the previous target include directory declaration to streamline the configuration.
This commit is contained in:
@@ -26,8 +26,6 @@ include_directories(
|
||||
$<$<NOT:$<BOOL:${PahoMqttC_FOUND}>>:${PAHO_MQTT_C_INCLUDE_DIR}>
|
||||
)
|
||||
|
||||
target_include_directories(main PRIVATE /usr/local/include)
|
||||
|
||||
# Source files
|
||||
set(SOURCES
|
||||
src/main.cpp
|
||||
@@ -39,11 +37,13 @@ set(SOURCES
|
||||
src/navigation.cpp
|
||||
)
|
||||
|
||||
# Create executable with simple name
|
||||
add_executable(main ${SOURCES})
|
||||
|
||||
target_include_directories(main PRIVATE /usr/local/include)
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(main
|
||||
PRIVATE
|
||||
unitree_sdk2
|
||||
Threads::Threads
|
||||
$<$<BOOL:${PahoMqttC_FOUND}>:PahoMqttC::PahoMqttC>
|
||||
|
||||
Reference in New Issue
Block a user