cmake_minimum_required(VERSION 3.1)
project (TeamTalk5ProServer)

include_directories (../../Library/TeamTalk_DLL)
link_directories (../../Library/TeamTalk_DLL)

option (BUILD_TEAMTALKPRO_SERVER_EXAMPLE "Build TeamTalk Server Example for TeamTalk 5 Professional Edition" ON)

if (MSVC)
  add_definitions (-DUNICODE -D_UNICODE)
endif()

if (BUILD_TEAMTALKPRO_SERVER_EXAMPLE)
  add_executable (TeamTalk5ProServer Main.cpp)
  set_property(TARGET TeamTalk5ProServer PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../Library/TeamTalk_DLL")
  target_link_libraries (TeamTalk5ProServer TeamTalk5Pro)
endif()
