forked from BearWare/TeamTalk5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (23 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.1)
project (TeamTalk5ProServer)
include_directories (../../Library/TeamTalk_DLL)
link_directories (../../Library/TeamTalk_DLL)
option (BUILD_TEAMTALK_SERVER_TEAMTALKSERVER "Build TeamTalk Server Example for TeamTalk 5 Professional Edition" ON)
if (MSVC)
add_definitions (-DUNICODE -D_UNICODE)
endif()
if (BUILD_TEAMTALK_SERVER_TEAMTALKSERVER)
add_executable (TeamTalk5ProServer Main.cpp)
set_property(TARGET TeamTalk5ProServer PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../Library/TeamTalk_DLL")
if (BUILD_TEAMTALK_LIBRARY_DLLPRO)
target_link_libraries (TeamTalk5ProServer TeamTalk5ProDLL)
else()
find_library(TEAMTALK5PRO_LIBRARY TeamTalk5Pro PATHS ../../Library/TeamTalk_DLL)
if (NOT TEAMTALK5PRO_LIBRARY)
message(WARNING "Cannot find TeamTalk5Pro shared library in ../../Library/TeamTalk_DLL")
else()
target_link_libraries (TeamTalk5ProServer ${TEAMTALK5PRO_LIBRARY})
endif()
endif()
install (TARGETS TeamTalk5ProServer DESTINATION Server/TeamTalkServer)
endif()