<br><br><div class="gmail_quote">On Sun, Feb 24, 2013 at 2:23 AM, Ansis Māliņš <span dir="ltr">&lt;<a href="mailto:ansis.malins@gmail.com" target="_blank">ansis.malins@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"># You don&#39;t need the .in file.<div><br></div><div><div>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)</div><div><br></div><div>PROJECT(hello)</div><div><br></div><div>set (hello_VERSION_MAJOR 1)</div><div>set (hello_VERSION_MINOR 1)</div>


<div><br></div><div>ENABLE_TESTING()</div><div><br></div><div>ADD_LIBRARY(hello hello.cpp)</div><div><br></div><div># This works just the same. Unless I&#39;m missing something.</div><div><div>SET(hello_INCLUDE_DIRS</div>


<div>  ${CMAKE_INSTALL_PREFIX}/include/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR})</div><div>SET(hello_LIBRARIES</div><div>  ${CMAKE_INSTALL_PREFIX}/lib/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR}/libhello.a)</div>
</div></div></div></blockquote><div> </div><div>s/lib/${CMAKE_STATIC_LIBRARY_PREFIX}/</div><div>s/.a/${CMAKE_STATIC_LIBRARY_SUFFIX}/</div><div><br></div><div>also available ${CMAKE_EXECUTABLE_SUFFIX}  would be blank in your case, but not always.</div>
<div><br></div><div>${CMAKE_SHARED_LIBRARY_PREFX}</div><div>${CMAKE_SHARED_LIBRARY_SUFFX}</div><div><br></div><div>PREFIX will be blank for windows platforms and SUFFIX appropriate .lib or .dll (.a, .so ) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>

</div><div><br></div><div>INSTALL(TARGETS hello DESTINATION</div><div>  lib/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR})</div><div><br></div><div>INSTALL(FILES helloConfig.cmake DESTINATION</div><div>  lib/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR})</div>


<div><br></div><div>INSTALL(FILES hello.h DESTINATION</div><div>  include/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR})</div></div></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>