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}>
|
$<$<NOT:$<BOOL:${PahoMqttC_FOUND}>>:${PAHO_MQTT_C_INCLUDE_DIR}>
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(main PRIVATE /usr/local/include)
|
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
@@ -39,11 +37,13 @@ set(SOURCES
|
|||||||
src/navigation.cpp
|
src/navigation.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create executable with simple name
|
|
||||||
add_executable(main ${SOURCES})
|
add_executable(main ${SOURCES})
|
||||||
|
|
||||||
|
target_include_directories(main PRIVATE /usr/local/include)
|
||||||
|
|
||||||
# Link libraries
|
# Link libraries
|
||||||
target_link_libraries(main
|
target_link_libraries(main
|
||||||
|
PRIVATE
|
||||||
unitree_sdk2
|
unitree_sdk2
|
||||||
Threads::Threads
|
Threads::Threads
|
||||||
$<$<BOOL:${PahoMqttC_FOUND}>:PahoMqttC::PahoMqttC>
|
$<$<BOOL:${PahoMqttC_FOUND}>:PahoMqttC::PahoMqttC>
|
||||||
|
|||||||
Reference in New Issue
Block a user