Am 31.05.2010 um 11:18 schrieb Kornel Benko:
> Am Montag, 31. Mai 2010 schrieb Stephan Witt:
>> Hi,
>>
>> I really don't know whats going on with cmake...
>> ... but when trying cmake+Xcode there is an error which is avoided with the
>> patch below.
>> Vincent, you added the lyx_automoc line. Is this change ok?
>>
>> Stephan
>>
>>
>> Index: development/cmake/src/CMakeLists.txt
>> ===================================================================
>> --- development/cmake/src/CMakeLists.txt (Revision 34538)
>> +++ development/cmake/src/CMakeLists.txt (Arbeitskopie)
>> @@ -56,7 +56,11 @@
>> list(APPEND lyx_headers ${TOP_SRC_DIR}/src/EnchantChecker.h)
>> endif()
>>
>> -lyx_automoc(${TOP_SRC_DIR}/src/Compare.cpp ${TOP_SRC_DIR}/src/Server.cpp)
>> +if (UNIX)
>> + lyx_automoc(${TOP_SRC_DIR}/src/Compare.cpp)
>> +else()
>> + lyx_automoc(${TOP_SRC_DIR}/src/Compare.cpp ${TOP_SRC_DIR}/src/Server.cpp)
>> +endif()
>>
>> include_directories(${CMAKE_CURRENT_BINARY_DIR}
>> ${ZLIB_INCLUDE_DIR} ${QT_INCLUDES})
>>
>>
>
> I have unix, and _no_ erros on Server.cpp.
What's the content of the file src/moc_Server.cpp in your cmake build tree?
Stephan