Understanding CMakeLists of GZDoom
Posted: Mon Sep 07, 2020 9:51 am
I'm trying to embed a Python interpreter in the GZDoom existing code base and I'm having trouble understanding the CMakeLists.txt. Here's my shell script to compile the source code:
The problem is, in order to embed the python interpreter, I need to user the "target_link_libraries" function on gzdoom, but I can't find the "add_executable" part of the CMakesList. There is an "add_custom_target" though, but that's not what I need to link to.
Where is gzdoom? (The final build) on the CMakesList?
Thanks for the help
Code: Select all
#!/bin/sh
a='' && [ "$(uname -m)" = x86_64 ] && a=64
c="$(lscpu -p | grep -v '#' | sort -u -t , -k 2,4 | wc -l)" ; [ "$c" -eq 0 ] && c=1
cd ./build &&
rm -f output_sdl/liboutput_sdl.so &&
if [ -d ../fmodapi44464linux ]; then
f="-DFMOD_LIBRARY=../fmodapi44464linux/api/lib/libfmodex${a}-4.44.64.so \
-DFMOD_INCLUDE_DIR=../fmodapi44464linux/api/inc"; else
f='-UFMOD_LIBRARY -UFMOD_INCLUDE_DIR'; fi &&
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/home/ericson/Workspace/ZMusic/build_install ..
cmake .. -DCMAKE_BUILD_TYPE=Release $f &&
make -j$c
Where is gzdoom? (The final build) on the CMakesList?
Thanks for the help
