<div dir="ltr">Hi I'm trying to build just one cxx file<div>specifically rtkprojectgeometricphantom.cxx</div><div><br></div><div>I copied rtkprojectgeometricphantom.cxx, rtkprojectgeometricphantom.cxx, CMakeLists.txt to new directory.</div><div><br></div><div>and in CMakeLists.txt, I added three lines</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">cmake_minimum_required(VERSION 3.9.5 FATAL_ERROR)<br>find_package(Gengetopt REQUIRED)<br>project(rtkprojectgeometricphantom)</blockquote><div><br></div><div>here is an error message.</div><div><br></div><div> <span style="color:rgb(255,0,0);white-space:pre-wrap">CMake Error at CMakeLists.txt:3 (find_package):</span></div><p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)"> By not providing "FindGengetopt.cmake" in CMAKE_MODULE_PATH this project<br> has asked CMake to find a package configuration file provided by<br> "Gengetopt", but CMake did not find one.<br><br> Could not find a package configuration file provided by "Gengetopt" with<br> any of the following names:<br><br> GengetoptConfig.cmake<br> gengetopt-config.cmake<br><br> Add the installation prefix of "Gengetopt" to CMAKE_PREFIX_PATH or set<br> "Gengetopt_DIR" to a directory containing one of the above files. If<br> "Gengetopt" provides a separate development package or SDK, be sure it has<br> been installed.<br><br></span></p>
<p style="margin:0px;white-space:pre-wrap">Configuring incomplete, errors occurred!</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">I need to set an Gengetopt_DIR.</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">at first I set the directory where rtkprojectgeometricphantom.ggo is but It didn't work</p><p style="margin:0px;white-space:pre-wrap">and than I set the directory where FindGengetopt.cmake is It still didn't work.</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">I think I need to find the directory of GengetoptConfig.cmake or gengetopt-config.cmake</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">how can I build only one cxx file?</p><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/9132bda58d9c5debcdb3f614e8dddffca6f1767c.png?u=4672561"></div>