Windows Library x8664-w64-mingw32-g++ -shared test.cpp -o windows/test.dll -fPIC Windows…
- User
Windows Library x86_64-w64-mingw32-g++ -shared test.cpp -o windows/test.dll -fPIC
Windows exe x86_64-w64-mingw32-g++ main.cpp -o exe.exe
Linux Library g++ -shared test.cpp -o linux/test.dll -fPIC
Linux exe g++ main.cpp -o exe
is this possible to convert this to cmake
- Assistant
Yes, it is possible to convert the provided commands into a CMakeLists.txt file. Below is an example of how it can be done:
code