Re: [CMake] make file for win32 MDI application
Mark Wyszomierski wrote: Hi, When the application you're building the makefile for is an MDI application, how do you; 1) Set the sub system to be: Windows (/SUBSYSTEM:WINDOWS) ADD_EXECUTABLE( myexe WIN32 ) linking to these libs in my MDI projects give produce a lot of linking errors. Is there any way to omit them? In principle they shouldn't as that's the standard stuff used by windows itself when you create a gui project. If you do want to omit them, change the value of CMAKE_C_STANDARD_LIBRARIES_INIT (see Modules/Platform/Windows-cl.cmake ) -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] make file for win32 MDI application
Hi, When the application you're building the makefile for is an MDI application, how do you; 1) Set the sub system to be: Windows (/SUBSYSTEM:WINDOWS) in visual studio, this option is found under Project -> Linker -> System -> Sub System if not set, the MDI (or any other GUI interface app) will have an identity crisis and become a console application. 2) Some default libs seem to be added to the linker settings even though not specified in the make file: kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib linking to these libs in my MDI projects give produce a lot of linking errors. Is there any way to omit them? Thanks, Mark ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake