Re: [CMake] Executable extension (MSVC)

2008-05-15 Thread PCJohn
> Use the WIN32 option of the add_executable command: > http://www.cmake.org/HTML/cmake-2.6.html#command:add_executable Thanks. For any other interested people: - this switches using of main to WinMain - to switch it back, you can use set_target_properties (autoconsole PROPE

Re: [CMake] Executable extension (MSVC)

2008-05-15 Thread Werner Smekal
Hi John, - it seems to me that cmake is building console applications by default (/SUBSYSTEM:CONSOLE). That is correct for my .com applications. For the .exe, I will need WINDOWS subsystem. Any possiblities in cmake? Use the WIN32 option of the add_executable command: http://www.cmake.org

Re: [CMake] Executable extension (MSVC)

2008-05-15 Thread PCJohn
Good morning, thanks for all your comments. Here are the results: - it seems to me that cmake is building console applications by default (/SUBSYSTEM:CONSOLE). That is correct for my .com applications. For the .exe, I will need WINDOWS subsystem. Any possiblities in cmake? - for the suffix,

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
> I know for a fact that this is not correct. I have written my own > single windows applications that have a gui and a console and it is a > .exe. Link the gui application with subsystem console. > Ok. I found what I do. I have a post build step (in a vc6 project .dsp) that changes the subsyste

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread clinton
On Wednesday 14 May 2008 11:05:43 am David Cole wrote: > No flags, just name the output file .com instead of .exe... Right. > > Still works with present day Visual Studio... Even Visual Studio has a tiny devenv.com which probably calls devenv.exe and keeps it attached to the console to see out

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread Bill Hoffman
John Drescher wrote: What are the flags used in MSVC to create a .com file? I assume you need a very old version of msvc to support 16 bit compiles. Microsoft compilers have not supported this since version 4.X I believe which was more than 10 years ago. I don't know about that. devenv.com

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread David Cole
No flags, just name the output file .com instead of .exe... Still works with present day Visual Studio... On Wed, May 14, 2008 at 1:00 PM, John Drescher <[EMAIL PROTECTED]> wrote: > > What are the flags used in MSVC to create a .com file? > > > I assume you need a very old version of msvc to s

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
On Wed, May 14, 2008 at 9:20 AM, PCJohn <[EMAIL PROTECTED]> wrote: > Dear cmakers, > > I really need to set executable extension to .com instead to standard .exe > (using MSVC). Is it possible to do that, or do I need to not use cmake for > win32 platform? > > Reasons: > I planned to port Invent

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
> What are the flags used in MSVC to create a .com file? > I assume you need a very old version of msvc to support 16 bit compiles. Microsoft compilers have not supported this since version 4.X I believe which was more than 10 years ago. John ___ CMake

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread Bill Hoffman
PCJohn wrote: Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Reasons: I planned to port InventorTools utilities (http://merlin.fit.vutbr.cz/wiki/index.php/Ope

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread Alan W. Irwin
On 2008-05-14 15:20+0200 PCJohn wrote: Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Look at the SUFFIX property for SET_TARGET_PROPERTIES. Alan ___

[CMake] Executable extension (MSVC)

2008-05-14 Thread PCJohn
Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Reasons: I planned to port InventorTools utilities (http://merlin.fit.vutbr.cz/wiki/index.php/Open_Inventor_Tool