Hi Steve,<div><br></div><div>Thank you! At least you're more programmer than I am. ;-)</div><div>Well, let's see if there is a way to clean up and simplify this CMakeLists.txt file a bit.</div><div>I haven't studied Cmake yet either. </div>
<div><br></div><div>Any other objections or something to add to the wishlist from others?</div><div><br></div><div>Daniel</div><div><br></div><div><br><br><div class="gmail_quote">2010/12/2 Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Daniel,<br>
<br>
I'm not a cmake expert in fact I hardly know anything about it, but looking at the file I would assume that if you want to redefine it in cmake then you would replace the existing line with something like:<br>
<br>
<br>
IF (NOT SQL_INSTALL_PATH)<br>
SET(SQL_INSTALL_PATH /usr/share/pgrouting)<br>
ENDIF(NOT SQL_INSTALL_PATH)<br>
<br>
<br>
And then when you run want to override it you do something like:<br>
<br>
SQL_INSTALL_PATH=/opt/emap/pgrouting cmake<br>
<br>
or maybe<br>
<br>
cmake SQL_INSTALL_PATH=/opt/emap/pgrouting<br>
<br>
-Steve W<div class="im"><br>
<br>
On 12/1/2010 9:36 PM, Daniel Kastl wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
This is an interesting question.<br>
Actually (at least I) haven't thought about this yet.<br>
<br>
I know that at least SQL install path is defined in line 67 in the file:<br>
<a href="https://github.com/pgRouting/pgrouting/blob/v1.05/CMakeLists.txt#L67" target="_blank">https://github.com/pgRouting/pgrouting/blob/v1.05/CMakeLists.txt#L67</a><br>
(I actually just changed it to /usr/share/pgrouting recently in the<br>
development branch, because "postlbs" was an idea in the beginning of<br>
pgRouting we won't follow anymore)<br>
<br>
I suppose that there should be a way to configure customs paths with<br>
CMAKE, but without reading more about it I don't know how. SQL path<br>
might be hard-coded though. If someone knows what could be done and<br>
knows better, please let me know.<br>
<br>
Daniel<br>
<br>
<br>
<br></div>
2010/12/1 Emre Ersin <<a href="mailto:emree@mobiliz.com.tr" target="_blank">emree@mobiliz.com.tr</a> <mailto:<a href="mailto:emree@mobiliz.com.tr" target="_blank">emree@mobiliz.com.tr</a>>><div><div></div><div class="h5">
<br>
<br>
Hi,<br>
<br>
I am trying to compile all the mapserver stuff in a custom directory<br>
/opt/emap. Everything built fine except pgrouting.<br>
How can I define postgresql, cgal, boost directories during cmake<br>
process?<br>
I was hoping that they were defined in CMakeLists.txt but it seems I<br>
am missing something...<br>
<br>
/opt/src/pgrouting-1.05# cmake<br>
-DBoost_INCLUDE_DIR=/opt/src/boost_1_45_0 -DWITH_DD=ON<br>
-DCGAL_INCLUDE_DIR=/opt/emap -DCGAL_LIBRARIES=/opt/emap<br>
-DPOSTGRESQL_INCLUDE_DIR=/opt/emap -DPOSTGRESQL_LIBRARIES=/opt/emap<br>
-DSQL_INSTALL_PATH=/opt/emap .<br>
-- The C compiler identification is GNU<br>
-- The CXX compiler identification is GNU<br>
-- Check for working C compiler: /usr/bin/gcc<br>
-- Check for working C compiler: /usr/bin/gcc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
Boost headers were found here: /opt/src/boost_1_45_0<br>
Output directory for libraries is set to /opt/emap/lib/postgresql<br>
-- Found PGROUTING_CORE core: /opt/src/pgrouting-1.05/core/src<br>
Installation directory for libraries is set to<br>
/opt/emap/lib/postgresql and for SQL files is set to /usr/share/postlbs<br>
-- Configuring done<br>
WARNING: Target "routing_dd" requests linking to directory<br>
"/opt/emap". Targets may link only to libraries. CMake is dropping<br>
the item.<br>
-- Generating done<br>
-- Build files have been written to: /opt/src/pgrouting-1.05<br>
<br>
<br>
<br>
Emre ERSİN<br>
<br>
<br>
_______________________________________________<br>
pgrouting-dev mailing list<br></div></div>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a> <mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a>><div class="im">
<br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br>
<br>
<br>
<br>
--<br>
Georepublic UG & Georepublic Japan<br></div>
eMail: <a href="mailto:daniel.kastl@georepublic.de" target="_blank">daniel.kastl@georepublic.de</a> <mailto:<a href="mailto:daniel.kastl@georepublic.de" target="_blank">daniel.kastl@georepublic.de</a>><br>
Web: <a href="http://georepublic.de" target="_blank">http://georepublic.de</a> <<a href="http://georepublic.de/" target="_blank">http://georepublic.de/</a>><div class="im"><br>
<br>
<br>
<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66, 99, 171)" target="_blank">daniel.kastl@georepublic.de</a><br>
Web: <a href="http://georepublic.de/" style="color:rgb(66, 99, 171)" target="_blank">http://georepublic.de</a></span><br>
</div>