examples: explicitly set language to C (#257)
CMake will default to enabling C and C++ if no languages are specified in the project(..) call. Micro-XRCE-DDS-Client is a C-only project. Avoid enabling C++. Signed-off-by: gavanderhoorn <g.a.vanderhoorn@tudelft.nl>
This commit is contained in:
parent
82fd784e0e
commit
39eac9448d
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(BinaryEntityCreation)
|
||||
project(BinaryEntityCreation C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(ContinuousFragment)
|
||||
project(ContinuousFragment C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(CustomTransports)
|
||||
project(CustomTransports C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -25,7 +25,7 @@ else()
|
|||
#############################################################
|
||||
### CONFIGURATOR
|
||||
#############################################################
|
||||
project(ConfiguratorClient)
|
||||
project(ConfiguratorClient C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
@ -50,7 +50,7 @@ else()
|
|||
#############################################################
|
||||
### PUBLISHER
|
||||
#############################################################
|
||||
project(PublisherClient)
|
||||
project(PublisherClient C)
|
||||
add_executable(PublisherClient publisher.c HelloWorld.c)
|
||||
if(MSVC OR MSVC_IDE)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE /wd4996)
|
||||
|
@ -70,7 +70,7 @@ else()
|
|||
#############################################################
|
||||
### SUBSCRIBER
|
||||
#############################################################
|
||||
project(SubscriberClient)
|
||||
project(SubscriberClient C)
|
||||
add_executable(SubscriberClient subscriber.c HelloWorld.c)
|
||||
if(MSVC OR MSVC_IDE)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE /wd4996)
|
||||
|
|
|
@ -25,7 +25,7 @@ else()
|
|||
#############################################################
|
||||
### DISCOVERY
|
||||
#############################################################
|
||||
project(Discovery)
|
||||
project(Discovery C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(MultiSessionHelloWorld)
|
||||
project(MultiSessionHelloWorld C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(PingAgentSerial)
|
||||
project(PingAgentSerial C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(PingAgentTCP)
|
||||
project(PingAgentTCP C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(PingAgentUDP)
|
||||
project(PingAgentUDP C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(PublishHelloWorldClient)
|
||||
project(PublishHelloWorldClient C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(PublishHelloWorldClientBestEffort)
|
||||
project(PublishHelloWorldClientBestEffort C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(PublishHelloWorldClientP2P)
|
||||
project(PublishHelloWorldClientP2P C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR)
|
||||
|
||||
project(ReplyAdder)
|
||||
project(ReplyAdder C)
|
||||
|
||||
if(NOT UCLIENT_PROFILE_UDP)
|
||||
message(WARNING "Can not compile example: the UCLIENT_PROFILE_UDP must be enables.")
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR)
|
||||
|
||||
project(RequestAdder)
|
||||
project(RequestAdder C)
|
||||
|
||||
if(NOT UCLIENT_PROFILE_UDP)
|
||||
message(WARNING "Can not compile example: the UCLIENT_PROFILE_UDP must be enables.")
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(ShapeDemoClient)
|
||||
project(ShapeDemoClient C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(SubscribeHelloWorldClient)
|
||||
project(SubscribeHelloWorldClient C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(SubscribeHelloWorldClientBestEffort)
|
||||
project(SubscribeHelloWorldClientBestEffort C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(SubscribeHelloWorldClientP2P)
|
||||
project(SubscribeHelloWorldClientP2P C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(TimeSync)
|
||||
project(TimeSync C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
|
@ -17,7 +17,7 @@ if (${CMAKE_VERSION} VERSION_GREATER 3.0)
|
|||
cmake_policy(SET CMP0048 NEW)
|
||||
endif()
|
||||
|
||||
project(TimeSyncWithCb)
|
||||
project(TimeSyncWithCb C)
|
||||
|
||||
if(NOT UCLIENT_BUILD_EXAMPLES)
|
||||
find_package(microxrcedds_client REQUIRED)
|
||||
|
|
Loading…
Reference in New Issue