How to Include Virtual Studio's Libraries?
已回答
I just installed Siv3D the game library.
But there is no website which contains "How to install(Set environment) Virtual Studio's library".
How can I do this?
请先登录再写评论。
@Iamme2002 since CLion works with CMake projects, you need to have a correct CMake project with Siv3D included.
Usually libraries are added to the project via find_package (if you use separate libraries, for example, installed in the system) and target_link_libraries CMake commands. Please take a look at the following Help article: https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#d99293e256.
Unfortunately there is no bundled Siv3D.cmake script in default CMake distribution and it's not provided in the Siv3D distribution also. As I can see, in case of Linux Siv3D is a CMake project itself, so you can build it as a subproject of your main project and specify the library target name in target_link_libraries. In case of macOS or Windows, you can try to provide required paths for target_link_library manually in your CMakeLists.txt. If you need to use some Siv3D specific headers, you need to use include_directories, more details here: https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#include.