Enable our pictx tool for compilation
completed by: Cezar
mentors: Sean
BRL-CAD provides more than 400 applications. When we migrated from an Autotools build system to CMake, some tools were not converted and some were disabled long ago for a variety of reasons. One such tool is one called pictx.
Note that the tool uses the X11 interface so you'll have to add proper protections so that the tool does not attempt to compile on other platforms. See src/util/CMakeLists.txt file for examples of other X11 tools that compile conditionally.
This task requires enabling that tool for compilation, properly defining the build system logic in our CMakeLists.txt file (to link the right libraries), and fixing any compilation warnings that have crept in. If you cannot get it to compile, you must provide a build log with explanation of the problem(s) you encountered and why they cannot be (easily) overcome.
References:
- src/util/CMakeLists.txt
Code:
- src/irprep/CMakeLists.txt
- src/irprep/pictx.c
Provide a patch of all your changes.