How i can use my own cmake to build a code without using open_spiel as a shared libary ? #1184
Answered
by
lanctot
LucasCelestinoSE
asked this question in
Q&A
-
I'm trying to do cmake to build my own project. |
Beta Was this translation helpful? Give feedback.
Answered by
lanctot
Mar 6, 2024
Replies: 1 comment 1 reply
-
The code that i want to build using cmakeII can't use the cmake you made, because it's a big build, I just need to use an example, I just need to build an example case and test using EMSCRIPTEN/WebAssembly.`
` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I assume you have built OpenSpiel as a shared library using the instructions here.
Then you can have a fairly simple
CMakeLists.txt
for the program above, i.e. it would look quite close to this example.It's probably best to go through the CMake Tutorial. There's also a nice video tutorial here.
If, after learning CMake you have a problem compiling the basic program above, please follow-up here. For more complex questions regarding other technologies (like WebAssembly etc.) probably best to ask on their forums. For CMake in particular, there's a subreddit that may be useful too: https://www.reddit.com/r/cmake/