Skip to content

Commit

Permalink
Bazel as build system works now
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsch420 committed May 10, 2024
1 parent 2498628 commit a1f2105
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 67 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--cxxopt='-std=c++17'
10 changes: 10 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cc_library(
name = "random_events",
srcs = glob(["random_events/src/*.cpp"]),
hdrs = glob(["random_events/include/*h"]),
visibility = ["//visibility:public"],
includes = [
"random_events",
"random_events/include"
],
)
10 changes: 0 additions & 10 deletions CMakeLists.txt

This file was deleted.

7 changes: 7 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "com_google_googletest",
urls = ["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip"],
strip_prefix = "googletest-5ab508a01f9eb089207ee87fd547d290da39d015",
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "sigma_algebra.h"
#include <memory>
#include <utility>
#include <limits>

//FORWARD DECLARE
class SimpleInterval;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 0 additions & 39 deletions src/random_events/CMakeLists.txt

This file was deleted.

7 changes: 7 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cc_test(
name = "test_all",
size = "small",
srcs = glob(["*.cpp"]),
deps = ["@com_google_googletest//:gtest_main",
"//:random_events"]
)
16 changes: 0 additions & 16 deletions test/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion test/lib/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion test/lib/googletest
Submodule googletest deleted from fa6de7
1 change: 1 addition & 0 deletions test/test_interval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <set>
#include <memory>


bool compare_simple_set_set(const SimpleSetSetPtr_t &lhs, const SimpleSetSetPtr_t &rhs) {
if (lhs->size() != rhs->size()) {
return false;
Expand Down

0 comments on commit a1f2105

Please sign in to comment.