Added a install target

This commit is contained in:
WolverinDEV 2019-07-02 02:22:04 +02:00
parent 7010511b29
commit 89fd735919
2 changed files with 13 additions and 2 deletions

4
.build_linux_amd64.txt Normal file
View File

@ -0,0 +1,4 @@
1
success
7010511b29f8c1a3df74b22e840cc8cb19bf06b8
Di 2. Jul 02:21:34 CEST 2019

View File

@ -176,6 +176,15 @@ if (NOT WIN32)
endif ()
add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES})
install(TARGETS TeaSpeak
ARCHIVE DESTINATION lib
)
INSTALL (
DIRECTORY ${CMAKE_SOURCE_DIR}/src/
DESTINATION include
FILES_MATCHING PATTERN "*.h*"
)
set(TEST_LIBRARIES
sqlite3
${LIBRARY_PATH_THREAD_POOL} #Static
@ -198,9 +207,7 @@ set(TEST_LIBRARIES
${LIBRARY_PATH_BORINGSSL_SSL}
${LIBRARY_PATH_BORINGSSL_CRYPTO} #Crypto must be linked after
)
include_directories(src/)
option(BUILD_TESTS "Enable/disable test building" ON)
if(BUILD_TESTS)
add_executable(RingTest test/RingTest.cpp ${SOURCE_FILES})