Compiling ros node with cmake and swi-prolog
Hi to all! I have a ROS node that performs some swi-prolog queries using the pl2cpp library (it comes together with the swi-prolog installation). Now, the problem is that when i have a .cpp file that interacts with prolog in this way, i need to compile it together with the used prolog file with the compilation command swipl-ld
ex. swipl-ld my_ccp_file.cpp my_prolog_file.pl
this generates the stand alone executable with the cpp and the prolog linked together. I don't know how and when to call this procedure in the compilation process of a ROS node.