tudelft3d / City3D

Large-scale LoD2 Building Reconstruction from Airborne LiDAR Point Clouds
https://github.com/tudelft3d/City3D
GNU General Public License v3.0
223 stars 36 forks source link

what is "POLYFIT_lpsolve_DIR"? #40

Closed dlfming closed 3 months ago

dlfming commented 3 months ago

Hi! Thank you so much for opening up your source code! When I read the code, I noticed that in "../code/3rd_party/3rd_soplex/cmakelists.txt", contains a section of code target_include_directories(${PROJECT_NAME} PRIVATE ${POLYFIT_lpsolve_DIR}/shared ${POLYFIT_lpsolve_DIR}/bfp ${POLYFIT_lpsolve_DIR}/bfp/bfp_LUSOL ${POLYFIT_lpsolve_DIR}/bfp/bfp_LUSOL/LUSOL ${POLYFIT_lpsolve_DIR}/colamd) I try to get the information about the ${POLYFIT_lpsolve_DIR} with cmake debugger, but got an empty value. So, waht is it?

LiangliangNan commented 3 months ago

Hi, as its name stands, POLYFIT_lpsolve_DIR points to the root directory of lpsolve. You can find it in City3D/code/CMakeLists.txt. It is used to specify the relative path of lpsolve (very useful when other modules depend on it).

An advice: When reading code, consider all code in the source tree as a whole, and then you will not miss it.