[build] Split build target into aergocli, aergosvr, aergoluac
+#
+# @file CMakeLists.txt
+# @copyright defined in aergo/LICENSE.txt
+#
+
cmake_minimum_required(VERSION 3.0)
project(aergo NONE)
@@ -5,12 +10,17 @@ project(aergo NONE)
set(BIN_DIR ${CMAKE_CURRENT_LIST_DIR}/bin)
set(PROTO_DIR ${CMAKE_CURRENT_LIST_DIR}/aergo-protobuf/proto)
-add_custom_target(build ALL GOBIN=${BIN_DIR} go install -ldflags \"-X github.com/aergoio/aergo/cmd/aergocli/cmd.githash=`git rev-parse HEAD`\" ./cmd/...
- DEPENDS vendor libtool)
+add_custom_target(build ALL DEPENDS vendor libtool aergocli aergosvr aergoluac)
add_custom_target(aergocli GOBIN=${BIN_DIR} go install -ldflags \"-X github.com/aergoio/aergo/cmd/aergocli/cmd.githash=`git rev-parse HEAD`\" ./cmd/aergocli/...
DEPENDS vendor libtool)
+add_custom_target(aergosvr GOBIN=${BIN_DIR} go install ./cmd/aergosvr/...
+ DEPENDS vendor libtool)
+
+add_custom_target(aergoluac GOBIN=${BIN_DIR} go install ./cmd/aergoluac/...
+ DEPENDS vendor libtool)
+
add_custom_command(OUTPUT vendor
COMMAND glide install
DEPENDS glide.yaml glide.lock)
