Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-19 Thread Stephen McDowell
You may also find this article useful, it seems to explain how to configure the 
JSON files you need to for more complicated build systems: 
https://medium.com/audelabs/c-development-using-visual-studio-code-cmake-and-lldb-d0f13d38c563
 


They were writing for Linux / OS X, and you’ll see that they’re just using 
cmake -G 'Unix Makefiles’ in their tasks.json.


-- 

Powered by www.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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-19 Thread Mateusz Loskot
(you missed to reply to the mailing list!)

On 19 March 2018 at 11:58, Richard Frank  wrote:
> Ok fair enough. So. I can output Unix make files and VS code can load those?

Yes.

If you have read the vscode-cmake extension docs
https://vector-of-bool.github.io/,
you would have seen that there is no generator required, you can choose.

Consider another example:
if you use Visual Studio 2017 with its CMake integration [1],
you don't have to limit yourself to VisualStudio/MSBuild generator just becasue
you use CMake inside Visual Studio. You can use Ninja too.

[1] 
https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-19 Thread Mateusz Loskot
On 19 March 2018 at 11:51, Richard Frank  wrote:
> Yes I have that plugin. But for more complex build systems that build
> multiple products, running CMake from a shell script, I wondered what
> generator would be used,

FWIW, there no such thing as CMake generator for "Visual Studio Code".
VSCode is generator-agnostic.
For current list of generators, refer to the CMake docs.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 

Powered by www.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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-19 Thread Richard Frank
Yes I have that plugin. But for more complex build systems that build multiple 
products, running CMake from a shell script, I wondered what generator would be 
used,

Sent from my iPad

> On Mar 18, 2018, at 10:07 PM, Andrew Gaspar  wrote:
> 
> Hm, I’m not sure what you mean by built in support, but there is an excellent 
> plugin you should install: 
> https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
>  
> It gives you easy interface extensions for building, debugging, or testing 
> your project. You shouldn’t need to use a specific Generator – by default 
> CMake Tools will use the default generator (I think). So Makefiles should be 
> fine.
>  
> Is that what you were looking for?
>  
> Andrew Gaspar
>  
> From: CMake  on behalf of Richard Frank 
> 
> Sent: Sunday, March 18, 2018 4:18:34 PM
> To: cmake@cmake.org
> Subject: [CMake] Generator for Visual Studio Code (Ubuntu)
>  
> Hi
> 
> I’m trying out Visual Studio Code on Ubuntu 16.04. There’s support for CMake 
> built in but if I use CMake externally was generator should I use?
> 
> Thanks 
> 
> Rick Frank
> -- 
> 
> Powered by 
> https://eur03.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=WxauxUOq51ZRIp656qtFNI5U16CBz3kFhCIYUwUoP94%3D&reserved=0
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cmake.org%2FWiki%2FCMake_FAQ&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=lwzT5B3kjsfTjMmeEIlrCtGFfekNSOVPcxmjvhKs64s%3D&reserved=0
> 
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
> 
> CMake Support: 
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fsupport.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=eSXn18Hr1jYlsgSr7tZd6dvoLKb6x9o2ZdwD%2FGe2o%2B8%3D&reserved=0
> CMake Consulting: 
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fconsulting.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=4q%2By3fqm11Du4ZfavRlSXjuX2VkBeYpfjx57cq2Xq6A%3D&reserved=0
> CMake Training Courses: 
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Ftraining.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=FRKO1XfW8Ig63ewieK7fyLjSd%2B82m8a2GQc9li5KSU4%3D&reserved=0
> 
> Visit other Kitware open-source projects at 
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=c7EIM23%2FTAWSfOizVV7nJq2xo9fr1Yt12%2FZE3jxs780%3D&reserved=0
> 
> Follow this link to subscribe/unsubscribe:
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcmake.org%2Fmailman%2Flistinfo%2Fcmake&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=UhiwQSBUPtslzKxdRzig0iRkU6uaTGd8Uq55o2Nbn%2BY%3D&reserved=0
-- 

Powered by www.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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-18 Thread Andrew Gaspar
Hm, I’m not sure what you mean by built in support, but there is an excellent 
plugin you should install: 
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools



It gives you easy interface extensions for building, debugging, or testing your 
project. You shouldn’t need to use a specific Generator – by default CMake 
Tools will use the default generator (I think). So Makefiles should be fine.



Is that what you were looking for?



Andrew Gaspar




From: CMake  on behalf of Richard Frank 

Sent: Sunday, March 18, 2018 4:18:34 PM
To: cmake@cmake.org
Subject: [CMake] Generator for Visual Studio Code (Ubuntu)

Hi

I’m trying out Visual Studio Code on Ubuntu 16.04. There’s support for CMake 
built in but if I use CMake externally was generator should I use?

Thanks

Rick Frank
--

Powered by 
https://eur03.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=WxauxUOq51ZRIp656qtFNI5U16CBz3kFhCIYUwUoP94%3D&reserved=0

Please keep messages on-topic and check the CMake FAQ at: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cmake.org%2FWiki%2FCMake_FAQ&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=lwzT5B3kjsfTjMmeEIlrCtGFfekNSOVPcxmjvhKs64s%3D&reserved=0

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fsupport.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=eSXn18Hr1jYlsgSr7tZd6dvoLKb6x9o2ZdwD%2FGe2o%2B8%3D&reserved=0
CMake Consulting: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fconsulting.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=4q%2By3fqm11Du4ZfavRlSXjuX2VkBeYpfjx57cq2Xq6A%3D&reserved=0
CMake Training Courses: 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Ftraining.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=FRKO1XfW8Ig63ewieK7fyLjSd%2B82m8a2GQc9li5KSU4%3D&reserved=0

Visit other Kitware open-source projects at 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=c7EIM23%2FTAWSfOizVV7nJq2xo9fr1Yt12%2FZE3jxs780%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcmake.org%2Fmailman%2Flistinfo%2Fcmake&data=02%7C01%7C%7C593cf50557c1431db0b708d58d269787%7C84df9e7fe9f640afb435%7C1%7C0%7C636570119238976995&sdata=UhiwQSBUPtslzKxdRzig0iRkU6uaTGd8Uq55o2Nbn%2BY%3D&reserved=0
-- 

Powered by www.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:
https://cmake.org/mailman/listinfo/cmake


[CMake] Generator for Visual Studio Code (Ubuntu)

2018-03-18 Thread Richard Frank
Hi

I’m trying out Visual Studio Code on Ubuntu 16.04. There’s support for CMake 
built in but if I use CMake externally was generator should I use?

Thanks 

Rick Frank
-- 

Powered by www.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:
https://cmake.org/mailman/listinfo/cmake