Skip to content

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
Discussion options

You must be logged in to vote

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/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lanctot
Comment options

Answer selected by lanctot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants