Closed Lufims closed 1 year ago
You need to tell CMake where PSn00bSDK is by setting the CMAKE_TOOLCHAIN_FILE
CMake variable to the full absolute path to lib/libpsn00b/cmake/sdk.cmake
within the directory you installed PSn00bSDK into. You can do this in several ways:
CMakePresets.json
file provided with the project template, create a new environment variable named PSN00BSDK_LIBS
and set it to the full path to the lib/libpsn00b
directory. The presets file will automatically configure CMake to use the SDK's toolchain file, with no need to change anything in your project.CMakePresets.json
and replace the path in this line with the full path to sdk.cmake
on your machine. If you are on Windows, replace backslashes with forward slashes to make sure the JSON file can be parsed correctly.-DCMAKE_TOOLCHAIN_FILE="<path>"
to the CMake command line when configuring your project, or add set(CMAKE_TOOLCHAIN_FILE "<path>")
before the project()
command in CMakeLists.txt
.You can find more information about setting up the toolchain file and basic usage of presets here.
I did that, and now the issue is the other one that I posted, I created an environment variable to make it almost work
When I try to compile it says that there's an unknown command on the cMakeLists.txt.
CMake Error at CMakeLists.txt:14 (psn00bsdk_add_executable): Unknown CMake command "psn00bsdk_add_executable".