Skip to content

Commit

Permalink
Link externally installed protobuf (v3.10.1) with alpha_zero_example
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdaliri committed Jul 2, 2020
1 parent e81a1f1 commit aba6e59
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions open_spiel/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# alpha_zero is commented out because we don't support depending on the C++
# TensorFlow library yet. Fixes/contributions welcome.
# add_executable(alpha_zero_example alpha_zero_example.cc ${OPEN_SPIEL_OBJECTS})
# add_test(alpha_zero_example_test alpha_zero_example)
include(FindProtobuf)
find_package(Protobuf REQUIRED)

find_package(TensorflowCC REQUIRED)

add_executable(alpha_zero_example alpha_zero_example.cc $<TARGET_OBJECTS:alpha_zero> ${OPEN_SPIEL_OBJECTS})
add_test(alpha_zero_example_test alpha_zero_example)

target_link_libraries(alpha_zero_example ${PROTOBUF_LIBRARIES} TensorflowCC::TensorflowCC)

add_executable(benchmark_game benchmark_game.cc ${OPEN_SPIEL_OBJECTS})
add_test(benchmark_game_test benchmark_game --game=tic_tac_toe --sims=100 --attempts=2)
Expand Down

0 comments on commit aba6e59

Please sign in to comment.