If your / lib contains your own CMakeLists.txt , just use the add_subdirectory command:
add_subdirectory(/path/of/your/lib/that/contains/CMakeLists.txt)
Else
you need to use the exec_program command:
exec_program(script.sh)
where script.sh is
Do not forget
chmod +x script.sh
In my opinion, the first solution is better !!!
Nadir SOUALEM
source share