Fixed cmake for non server settings

This commit is contained in:
WolverinDEV 2020-01-26 14:46:12 +01:00
parent 23a9385afe
commit 3d3ddd274e

View File

@ -192,7 +192,10 @@ if (NOT WIN32)
endif () endif ()
add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES}) add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES})
target_link_libraries(TeaSpeak PUBLIC CXXTerminal::static threadpool::static jsoncpp_lib) target_link_libraries(TeaSpeak PUBLIC threadpool::static jsoncpp_lib)
if (TEASPEAK_SERVER)
target_link_libraries(TeaSpeak PUBLIC CXXTerminal::static)
endif ()
target_include_directories(TeaSpeak PUBLIC src/) target_include_directories(TeaSpeak PUBLIC src/)
install(TARGETS TeaSpeak install(TARGETS TeaSpeak
ARCHIVE DESTINATION lib ARCHIVE DESTINATION lib