Created by: GeorgeIvlev
Reconfigure cmake to output compiled libraries and executable to one folder, for example:
- With cmake configuration:
cmake -DCMAKE_BUILD_TYPE=Debug ..
files will be placed into:<project_root>/bin/x64/Debug
- for 64-bit system<project_root>/bin/x86/Debug
- for 32-bit system - With cmake configuration:
cmake -DCMAKE_BUILD_TYPE=Release ..
files will be placed into:<project_root>/bin/x64/Release
- for 64-bit system<project_root>/bin/x86/Release
- for 32-bit system - From there you need to run next command to be sure that libraries will be found by linker in build output folder first:
export LD_LIBRARY_PATH=<project_root>/bin/<arch_type>/<build_type>
For example on my system:export LD_LIBARY_PATH=/home/george/Desktop/xray-16/bin/x64/Debug
- Then you can simply run:
<project_root>/bin/x86/Debug/xr_3da -fsltx /<path_to_gameroot>/fsgame.ltx