On Monday 29 March 2010 12:27:17 pm Alan W. Irwin wrote:
> Wine (winehq.com) is free (in both senses) software that provides a Windows
> work-alike that appears (from news stories, I have no personal experience
> yet) to be fairly mature.
> 
> Thus, I was wondering whether anybody here had tried MinGW/MSYS/Wine as a
> platform for building software with CMake?  Note, I am not discussing a
> MinGW cross-compile possibility.  Instead, I am discussing running
> MinGW/MSYS and CMake directly under Wine.
> 
> Currently my only platform is Linux, and I have no practical experience
>  with the Windows platform (either Wine or proprietary versions) at this
>  stage. Nevertheless, if the MinGW/MSYS/Wine platform choice is known to
>  work with CMake, that would motivate me to learn enough about using
>  Windows so that I could use MinGW/MSYS/Wine on CMake myself.


I just tried an experiment and it worked.

=== cmakelists.txt ===
project(hello)
add_executable(hello hello.c)
target_link_libraries(hello gdi32)
===

Where hello.c was a Win32 "hello world" example grabbed off the internet.
Then use winegcc and wineg++ as your compiler (that is: no cross-compiling 
setup in CMake).

Clint
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to