]> prime8.dev >> repos - ttyd.git/commitdiff
CMake: add install target for ttyd
authorShuanglei Tao <tsl0922@gmail.com>
Fri, 16 Sep 2016 08:27:37 +0000 (16:27 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Fri, 16 Sep 2016 08:27:37 +0000 (16:27 +0800)
CMakeLists.txt

index 1b1721f7110947d6ad842746a40663cf39b94138..3a3485ee841a1c7d416e79dd74cf0fcfa84347dd 100644 (file)
@@ -42,4 +42,6 @@ set(LINK_LIBS util pthread ${OPENSSL_LIBRARIES} ${LIBWEBSOCKETS_LIBRARIES} ${JSO
 
 add_executable(${PROJECT_NAME} ${SOURCE_FILES})
 target_include_directories(${PROJECT_NAME} PUBLIC ${INCLUDE_DIRS})
-target_link_libraries(${PROJECT_NAME} ${LINK_LIBS})
\ No newline at end of file
+target_link_libraries(${PROJECT_NAME} ${LINK_LIBS})
+
+install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)