<div dir="ltr"><div dir="ltr"><div>try using <br></div><div>SOURCE_DIR = <span class="gmail-im"> ${CMAKE_BINARY_DIR}/freetype/src/freetype</span></div><div><span class="gmail-im">CONFIGURE_COMMAND = <span class="gmail-im">./autgen.sh && ./configure</span></span></div><div><span class="gmail-im"><span class="gmail-im">BUILD_COMMAND = make</span></span></div><div><span class="gmail-im"><span class="gmail-im"><br></span></span></div><div><span class="gmail-im"><span class="gmail-im">It should git clone into SOURCE_DIR, configure the source by running CONFIGURE_COMMAND and build it using BUILD_COMMAND, You may need INSTALL_COMMAND = "" if you dont want to make install it<br></span></span></div><div><span class="gmail-im"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 9:51 PM <a href="mailto:Workbench@gmx.at">Workbench@gmx.at</a> <<a href="mailto:workbench@gmx.at">workbench@gmx.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I played around a bit a now have the following:<br>
<br>
set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL)<br>
set(LIBRARY_DIR "${CMAKE_BINARY_DIR}/lib" CACHE STRING INTERNAL)<br>
<br>
ExternalProject_Add(<br>
freetype<br>
PREFIX "${BUILD_ENV}/freetype"<br>
GIT_REPOSITORY "<a href="https://github.com/brooklynpacket/freetype2.git" rel="noreferrer" target="_blank">https://github.com/brooklynpacket/freetype2.git</a>"<br>
GIT_TAG 64bit<br>
BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype && <br>
./autgen.sh && ./configure && make"<br>
LOG_DOWNLOAD ON<br>
LOG_INSTALL ON<br>
LOG_CONFIGURE ON<br>
LOG_BUILD ON<br>
LOG_TEST ON<br>
LOG_INSTALL ON<br>
)<br>
<br>
The logs are telling me: CMake Error: The source directory <br>
"/home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype" <br>
does not appear to contain CMakeLists.txt.<br>
<br>
Isn't the BUILD_COMMAND there if there is no CMakeLists.txt file <br>
available for building ? not many project provide cmake build files....<br>
<br>
<br>
best regards!<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 19.02.19 06:43, Michael Ellery wrote:<br>
> CMAKE_BUILD_DIR is not a standard variable (did you mean CMAKE_BINARY_DIR ?) - and the error seems to indicate that the variable is indeed empty so it tries to create the project directory at the root level.<br>
><br>
> -Mike<br>
><br>
>> On Feb 18, 2019, at 8:58 PM, <a href="mailto:Workbench@gmx.at" target="_blank">Workbench@gmx.at</a> <<a href="mailto:workbench@gmx.at" target="_blank">workbench@gmx.at</a>> wrote:<br>
>><br>
>> Hi again,<br>
>><br>
>> i try to install my dependencies with ExternalProjectAdd but it gives me troubles... what's wrong with<br>
>><br>
>><br>
>> ExternalProject_Add(<br>
>> freetype<br>
>> PREFIX "${CMAKE_BUILD_DIR}/freetype"<br>
>> GIT_REPOSITORY "<a href="https://github.com/brooklynpacket/freetype2.git" rel="noreferrer" target="_blank">https://github.com/brooklynpacket/freetype2.git</a>"<br>
>> GIT_TAG 64bit<br>
>> BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype && ./autgen.sh && ./configure && make"<br>
>> LOG_DOWNLOAD ON<br>
>> LOG_INSTALL ON<br>
>> LOG_CONFIGURE ON<br>
>> LOG_BUILD ON<br>
>> LOG_TEST ON<br>
>> LOG_INSTALL ON<br>
>> )<br>
>><br>
>> best regards!<br>
>><br>
>> -- <br>
>><br>
>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>><br>
>> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
>><br>
>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
>><br>
>> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
>> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
>> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
><br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Thiago<br></div></div></div>