OpenSpiel makefile #1188
-
I've been studying cmake and I'm trying to create a cmake to build a game apart from the original build in the repository. But there are some files and directories that are core even before building the examples or games. I have been reading CmakeList which is inside the directory And I found the following supposed core_objetcs (which contains all the core codes) I tested but was unable to build, giving some errors, are there any other CmakeLists with more color files/directories that I ended up not paying attention to? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes it would be difficult to pull a game out on its own because several of them depend on other things in the code base, but mainly, the core API. The best way to do this would be to, first, build OpenSpiel as a C++ library. Then have a separate project with its own Makefile (or CMakeLists.txt) that links against the OpenSpiel shared library. You can copy over the game that you want into your project, modify it however you like, give it a different name, and then load it under the new name. I hope this helps. If not, please elaborate on what you'd like to do in more detail. |
Beta Was this translation helpful? Give feedback.
Hi @LucasCelestinoSE,
Yes it would be difficult to pull a game out on its own because several of them depend on other things in the code base, but mainly, the core API.
The best way to do this would be to, first, build OpenSpiel as a C++ library. Then have a separate project with its own Makefile (or CMakeLists.txt) that links against the OpenSpiel shared library. You can copy over the game that you want into your project, modify it however you like, give it a different name, and then load it under the new name.
I hope this helps. If not, please elaborate on what you'd like to do in more detail.