[hatari-devel] CMake build system

Thomas Huth huth at users.berlios.de
Fri Jan 22 09:27:28 CET 2010


On Tue, 19 Jan 2010 23:08:20 +0100
Thomas Huth <huth at users.berlios.de> wrote:

> I've now also spent some time to try out cmake on Mac OS X
> on my old PowerMac... I tried to create a native Xcode project with
> cmake, but that failed completely. First thing was, that I had to run
> cmake twice for some strange reason, or it would not create all
> necessary project files. Then, the Xcode project also does not work at
> all. It completely fails to build the UAE CPU core, and other parts
> showed me strange linker problems.

After calming down again a little bit, I had another try and finally
found this here:

http://www.itk.org/Wiki/CMake_FAQ#How_do_I_generate_an_executable.2C_then_use_the_executable_to_generate_a_file.3F

I simply forgot to query the location of the executable with
GET_TARGET_PROPERTY(... LOCATION)! Now that I've added this, the UAE
CPU core also compiles fine with the Xcode project generated by CMake.
Looks promising, now I just got to add the gui-osx folder again, then
we might be able to get rid of the old and hardly maintained Xcode
project file...

 Thomas



More information about the hatari-devel mailing list