Added a install target
This commit is contained in:
parent
7010511b29
commit
89fd735919
4
.build_linux_amd64.txt
Normal file
4
.build_linux_amd64.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
1
|
||||||
|
success
|
||||||
|
7010511b29f8c1a3df74b22e840cc8cb19bf06b8
|
||||||
|
Di 2. Jul 02:21:34 CEST 2019
|
@ -176,6 +176,15 @@ if (NOT WIN32)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
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
|
set(TEST_LIBRARIES
|
||||||
sqlite3
|
sqlite3
|
||||||
${LIBRARY_PATH_THREAD_POOL} #Static
|
${LIBRARY_PATH_THREAD_POOL} #Static
|
||||||
@ -198,9 +207,7 @@ set(TEST_LIBRARIES
|
|||||||
${LIBRARY_PATH_BORINGSSL_SSL}
|
${LIBRARY_PATH_BORINGSSL_SSL}
|
||||||
${LIBRARY_PATH_BORINGSSL_CRYPTO} #Crypto must be linked after
|
${LIBRARY_PATH_BORINGSSL_CRYPTO} #Crypto must be linked after
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(src/)
|
include_directories(src/)
|
||||||
|
|
||||||
option(BUILD_TESTS "Enable/disable test building" ON)
|
option(BUILD_TESTS "Enable/disable test building" ON)
|
||||||
if(BUILD_TESTS)
|
if(BUILD_TESTS)
|
||||||
add_executable(RingTest test/RingTest.cpp ${SOURCE_FILES})
|
add_executable(RingTest test/RingTest.cpp ${SOURCE_FILES})
|
||||||
|
Loading…
Reference in New Issue
Block a user