add_library( freertos_plus_tcp_config_common INTERFACE ) target_include_directories(freertos_plus_tcp_config_common INTERFACE Common ) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_disable INTERFACE) target_include_directories(freertos_plus_tcp_config_all_disable INTERFACE AllDisable) target_link_libraries(freertos_plus_tcp_config_all_disable INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_enable INTERFACE) target_include_directories(freertos_plus_tcp_config_all_enable INTERFACE AllEnable) target_link_libraries(freertos_plus_tcp_config_all_enable INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_enable_ipv4 INTERFACE) target_include_directories(freertos_plus_tcp_config_all_enable_ipv4 INTERFACE Enable_IPv4) target_link_libraries(freertos_plus_tcp_config_all_enable_ipv4 INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_enable_ipv6 INTERFACE) target_include_directories(freertos_plus_tcp_config_all_enable_ipv6 INTERFACE Enable_IPv6) target_link_libraries(freertos_plus_tcp_config_all_enable_ipv6 INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_enable_ipv4_ipv6 INTERFACE) target_include_directories(freertos_plus_tcp_config_all_enable_ipv4_ipv6 INTERFACE Enable_IPv4_IPv6) target_link_libraries(freertos_plus_tcp_config_all_enable_ipv4_ipv6 INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_enable_ipv4_tcp INTERFACE) target_include_directories(freertos_plus_tcp_config_all_enable_ipv4_tcp INTERFACE Enable_IPv4_TCP) target_link_libraries(freertos_plus_tcp_config_all_enable_ipv4_tcp INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_all_enable_ipv6_tcp INTERFACE) target_include_directories(freertos_plus_tcp_config_all_enable_ipv6_tcp INTERFACE Enable_IPv6_TCP) target_link_libraries(freertos_plus_tcp_config_all_enable_ipv6_tcp INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_header_self_contain INTERFACE) target_include_directories(freertos_plus_tcp_config_header_self_contain INTERFACE Header_Self_Contain) target_link_libraries(freertos_plus_tcp_config_header_self_contain INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- add_library( freertos_plus_tcp_config_default INTERFACE) target_include_directories(freertos_plus_tcp_config_default INTERFACE DefaultConf) target_link_libraries(freertos_plus_tcp_config_default INTERFACE freertos_plus_tcp_config_common) # ------------------------------------------------------------------- # Configuration for FreeRTOS-Kernel if(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "CUSTOM" ) # Check Config target is available. And then do nothing. if(NOT TARGET freertos_config ) message(FATAL_ERROR "FREERTOS_PLUS_TCP_TEST_CONFIGURATION = CUSTOM, but no freertos_config target defined.") endif() elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "DISABLE_ALL" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_disable) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "ENABLE_ALL" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_enable) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "ENABLE_ALL_IPV4" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_enable_ipv4) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "ENABLE_ALL_IPV6" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_enable_ipv6) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "ENABLE_ALL_IPV4_TCP" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_enable_ipv4_tcp) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "ENABLE_ALL_IPV6_TCP" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_enable_ipv6_tcp) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "ENABLE_ALL_IPV4_IPV6" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_all_enable_ipv4_ipv6) elseif(FREERTOS_PLUS_TCP_TEST_CONFIGURATION STREQUAL "HEADER_SELF_CONTAIN" ) add_library( freertos_config ALIAS freertos_plus_tcp_config_header_self_contain) include( Header_Self_Contain/headerSelfContain.cmake ) else() add_library( freertos_config ALIAS freertos_plus_tcp_config_default) endif() # Common build combination test. add_executable(freertos_plus_tcp_build_test EXCLUDE_FROM_ALL) target_sources(freertos_plus_tcp_build_test PRIVATE Common/main.c ) target_compile_options(freertos_plus_tcp_build_test PRIVATE $<$:-Wno-cast-qual> $<$:-Wno-format-nonliteral> $<$:-Wno-implicit-function-declaration> $<$:-Wno-missing-noreturn> $<$:-Wno-missing-prototypes> $<$:-Wno-missing-variable-declarations> $<$:-Wno-reserved-identifier> $<$:-Wno-shorten-64-to-32> $<$:-Wno-sign-conversion> $<$:-Wno-unused-parameter> $<$:-Wno-unused-macros> $<$:-Wno-unused-variable> ) target_link_libraries(freertos_plus_tcp_build_test PRIVATE freertos_plus_tcp freertos_kernel )