Skip to content

Commit

Permalink
use bundled Vanetza by default
Browse files Browse the repository at this point in the history
Change-Id: I6383aad3c9b65925ecfb4a119d80bc1ed727c81c
  • Loading branch information
riebl committed Apr 29, 2016
1 parent 7a01cea commit 4972210
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ macro(add_opp_run _name _config _target)
VERBATIM)
endmacro()

find_package(Vanetza REQUIRED)
find_package(Vanetza PATHS extern/vanetza/build REQUIRED)
option(Vanetza_STATIC "Link with static Vanetza libraries" OFF)

find_path(Veins_DIR NAMES src/veins/package.ned PATHS extern/veins DOC "Veins root directory")
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
PYTHON ?= python
VANETZA_DIR = extern/vanetza
VEINS_DIR = extern/veins

$(VEINS_DIR)/src/Makefile:
cd $(VEINS_DIR) && $(PYTHON) configure

veins: $(VEINS_DIR)/src/Makefile
$(MAKE) -C $(VEINS_DIR)

$(VANETZA_DIR)/build:
mkdir $(VANETZA_DIR)/build

vanetza: $(VANETZA_DIR)/build
cd $(VANETZA_DIR)/build && cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .

0 comments on commit 4972210

Please # to comment.