File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,16 @@ FetchContent_MakeAvailable(googletest)
15
15
16
16
enable_testing ()
17
17
18
+ include_directories (${CMAKE_SOURCE_DIR} /../../vendor/v8/include /)
19
+
18
20
add_executable (
19
21
hello_test
20
22
hello_test.cc
21
23
)
22
24
target_link_libraries (
23
25
hello_test
24
26
GTest::gtest_main
27
+ ${CMAKE_SOURCE_DIR} /../../vendor/v8/x86_64-darwin/libv8/obj/libv8_monolith.a
25
28
)
26
29
27
30
include (GoogleTest)
Original file line number Diff line number Diff line change 1
1
#include < gtest/gtest.h>
2
2
3
+ #include < v8.h>
4
+ #include < libplatform/libplatform.h>
5
+
3
6
// Demonstrate some basic assertions.
4
7
TEST (HelloTest, BasicAssertions) {
8
+ std::shared_ptr<v8::Platform> platform = v8::platform::NewDefaultPlatform ();
9
+
5
10
// Expect two strings not to be equal.
6
11
EXPECT_STRNE (" hello" , " world" );
7
12
// Expect equality.
You can’t perform that action at this time.
0 commit comments