Hi,<div><br></div><div>This is an interesting question.</div><div>Actually (at least I) haven&#39;t thought about this yet.</div><div><br></div><div>I know that at least SQL install path is defined in line 67 in the file:</div>

<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/pgRouting/pgrouting/blob/v1.05/CMakeLists.txt#L67">https://github.com/pgRouting/pgrouting/blob/v1.05/CMakeLists.txt#L67</a></div>

<div>(I actually just changed it to /usr/share/pgrouting recently in the development branch, because &quot;postlbs&quot; was an idea in the beginning of pgRouting we won&#39;t follow anymore)</div><div><br></div><div>I suppose that there should be a way to configure customs paths with CMAKE, but without reading more about it I don&#39;t know how. SQL path might be hard-coded though. If someone knows what could be done and knows better, please let me know.</div>

<div><br></div><div>Daniel</div><div><br></div><div><br></div><div><br><div class="gmail_quote">2010/12/1 Emre Ersin <span dir="ltr">&lt;<a href="mailto:emree@mobiliz.com.tr">emree@mobiliz.com.tr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I am trying to compile all the mapserver stuff in a custom directory /opt/emap. Everything built fine except pgrouting.<br>
How can I define postgresql, cgal, boost directories during cmake process?<br>
I was hoping that they were defined in CMakeLists.txt but it seems I am missing something...<br>
<br>
/opt/src/pgrouting-1.05# cmake -DBoost_INCLUDE_DIR=/opt/src/boost_1_45_0 -DWITH_DD=ON -DCGAL_INCLUDE_DIR=/opt/emap -DCGAL_LIBRARIES=/opt/emap -DPOSTGRESQL_INCLUDE_DIR=/opt/emap -DPOSTGRESQL_LIBRARIES=/opt/emap -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 /opt/emap/lib/postgresql and for SQL files is set to /usr/share/postlbs<br>
-- Configuring done<br>
WARNING: Target &quot;routing_dd&quot; requests linking to directory &quot;/opt/emap&quot;.  Targets may link only to libraries.  CMake is dropping 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>
<a href="mailto:pgrouting-dev@lists.osgeo.org">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>
</blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG &amp; 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>