project(IOTCAPIs_Sample) cmake_minimum_required(VERSION 2.8) #set(ROOT_DIR "${CMAKE_SOURCE_DIR}/../../../") include_directories(${ROOT_DIR}/Include) include_directories(${CMAKE_SOURCE_DIR}) find_library(IOTCAPIs IOTCAPIs HINTS ${LIB_DIR}) find_library(RDTAPIs RDTAPIs HINTS ${LIB_DIR}) SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIR}") SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIR}") SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIR}") SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIR}") add_executable(RDTServer RDTServer.c) target_link_libraries(RDTServer RDTAPIs IOTCAPIs) add_executable(RDTClient RDTClient.c) target_link_libraries(RDTClient RDTAPIs IOTCAPIs) add_executable(RDTServerMultiChannel RDTServerMultiChannel.c) target_link_libraries(RDTServerMultiChannel RDTAPIs IOTCAPIs) add_executable(RDTClientMultiChannel RDTClientMultiChannel.c) target_link_libraries(RDTClientMultiChannel RDTAPIs IOTCAPIs) add_executable(RDTServerByNebula RDTServerByNebula.c disposable_params.c) target_link_libraries(RDTServerByNebula RDTAPIs IOTCAPIs) add_executable(RDTClientByNebula RDTClientByNebula.c disposable_params.c) target_link_libraries(RDTClientByNebula RDTAPIs IOTCAPIs)