> 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
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
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,
> 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
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
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
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
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
> 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
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
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
___
11 matches
Mail list logo