Greetings! I’m trying to add Nakama to my cmake project as a static library.
The docs say:
When you’ve downloaded the Nakama C++ archive and extracted it to NAKAMA_CPP_SDK folder, you should include it in your project.
I have created a folder called NAKAMA_CPP_SDK in my project root and unzipped the contents of win-x64.zip to that folder.
Then I added these two lines to my cmakelists.txt in the project root:
add_subdirectory(NAKAMA_CPP_SDK ${CMAKE_CURRENT_BINARY_DIR}/nakama-cpp)
target_link_libraries(${APP_NAME} ext_nakama-cpp)
When I do that, cmake complains:
add_subdirectory given source "NAKAMA_CPP_SDK" which is not an existing
directory.
If provide an absolute path to the nakama files, it finds them but then it complains:
[path] does not contain a CMakeLists.txt file.
I’m not a cmake wizard, but I think I’ve followed the directions here. Thank you for any assistance!