From 6b8694bfbf7fe0c073f8b27c62feee9d87a5c35c Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Thu, 21 Feb 2019 22:05:30 -0800 Subject: [PATCH] add target for building with homebrew --- makefile | 3 +++ ws/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/makefile b/makefile index 6d8cca42..f5007a18 100644 --- a/makefile +++ b/makefile @@ -3,6 +3,9 @@ # all: run +brew: + mkdir -p ws/build && (cd ws/build ; cmake .. ; make) + .PHONY: docker docker: docker build -t broadcast_server:latest . diff --git a/ws/CMakeLists.txt b/ws/CMakeLists.txt index e8138e1f..8c2f9737 100644 --- a/ws/CMakeLists.txt +++ b/ws/CMakeLists.txt @@ -34,3 +34,4 @@ if (APPLE AND USE_TLS) endif() target_link_libraries(ws ixwebsocket) +install(TARGETS ws RUNTIME DESTINATION bin)