cmake_minimum_required(VERSION 3.12)
project(TetherComExample    DESCRIPTION "Usage example for ValoFly Tether.Solutions Communication Library"
                            HOMEPAGE_URL "https://www.valofly.com")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if(NOT CMAKE_DEBUG_POSTFIX)
    set(CMAKE_DEBUG_POSTFIX "d")
endif()

###### add 3rd Party Libs ######
### TetherCom ###
set(TETHERCOM_ROOT_DIR "${PROJECT_SOURCE_DIR}/../")
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${TETHERCOM_ROOT_DIR})
find_package(TetherCom REQUIRED)
################################

###### add targets ######
###### TetherComExample ######
set(TARGET_NAME TetherComExample)
INCLUDE_DIRECTORIES(
)

set(HEADERS
	)

set(SOURCES
        src/TetherComExample.cpp
	)

add_executable(${TARGET_NAME} ${HEADERS} ${SOURCES})
target_link_libraries(${TARGET_NAME} VALOFLY::TetherCom::TetherCom)
set_target_properties(${TARGET_NAME} PROPERTIES
    DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
    
install(TARGETS ${TARGET_NAME} RUNTIME DESTINATION "bin")