[CMake] ExternalProject_Add ... output directy (sln file directory)

Christophe Demez christophe.demez at luciad.com
Fri Mar 31 04:59:18 EDT 2017


Also,

I have try with a sample, just a main and a lib. But it seems that the 
lib CMakeLists.txt file is not called !

The project is created, but it does not point to the source code by 
example and the "message" are not displayed in the console too !

The download link :

https://www.dropbox.com/s/eto84gwtw2rx8oe/CMakeTest.zip?dl=0
<https://www.dropbox.com/s/c4z2x5tus245daj/CMakeTest.zip?dl=0>


On 30/03/2017 17:11, Christophe Demez wrote:
>
> BTW,
>
> I notice this too, if I use the following command line with an empty 
> cmakelists.txt file : cmake -G "Visual Studio 15 2017 Win64"
>
> And it also generate the .sln (and other files) in the same folder, 
> but I don't request to build such a solution ! right ?
>
> In reality, I only need a cmakelists.txt file that will build an 
> external library for Android (Ninja generator, directly from 
> AndroidStudio).
> For now I use the wrong generator for test.
>
>
> On 30/03/2017 16:20, David Cole wrote:
>> Do give it a BINARY_DIR, but do NOT give it a BUILD_COMMAND. Giving it
>> an empty BUILD_COMMAND means "do nothing" for the build step and using
>> "cmake --build ./LibraryBuild" does not work unless cmake is in your
>> PATH, and with a Visual Studio solution, you also need to specify
>> "--config Release" or "--config Debug"
>>
>> Also posted on SO.
>>
>>
>> HTH,
>> David C.
>>
>>
>>
>> On Thu, Mar 30, 2017 at 10:10 AM, Christophe Demez
>> <christophe.demez at luciad.com>  wrote:
>>> Hi,
>>>
>>> I'm currently using one CMakeLists.txt file that will execute an external
>>> CMakeLists.txt (and dependency).
>>>
>>> For this I use the ExternalProject_Add command, but I can't find a way to
>>> specify where the ".sln" file will be generated.
>>>
>>> I have also created StackOverflow question here with more information, if
>>> someone have an idea for a solution ?
>>>
>>> http://stackoverflow.com/questions/43117117/cmake-use-externalproject-add-and-specify-the-output-folder
>>>
>>> Thanks
>>> --
>>>
>>> Powered bywww.kitware.com
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Kitware offers various services to support the CMake community. For more
>>> information on each offering, please visit:
>>>
>>> CMake Support:http://cmake.org/cmake/help/support.html
>>> CMake Consulting:http://cmake.org/cmake/help/consulting.html
>>> CMake Training Courses:http://cmake.org/cmake/help/training.html
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/cmake
>
> -- 
> Luciad Email Signature *Christophe Demez *
> PROJECT LEADER
>
> *LUCIAD* <http://www.luciad.com/> CONNECT •  VISUALIZE •  ANALYZE •  ACT
>
> christophe.demez at luciad.com <mailto:christophe.demez at luciad.com> •  T 
> +32 16 23 95 91
> Follow us on LinkedIn <https://www.linkedin.com/company/luciad>or 
> @LUCIADconnect <http://www.twitter.com/LUCIADconnect>
>
> Luciad
>
>

-- 
Luciad Email Signature *Christophe Demez *
PROJECT LEADER

*LUCIAD* <http://www.luciad.com/> CONNECT •  VISUALIZE •  ANALYZE •  ACT

christophe.demez at luciad.com <mailto:christophe.demez at luciad.com> •  T 
+32 16 23 95 91
Follow us on LinkedIn <https://www.linkedin.com/company/luciad>or 
@LUCIADconnect <http://www.twitter.com/LUCIADconnect>

Luciad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170331/41a8bdb5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2447 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170331/41a8bdb5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luciad-logo.png
Type: image/png
Size: 2447 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170331/41a8bdb5/attachment-0001.png>


More information about the CMake mailing list