On Monday 31 October 2011, Laszlo Papp wrote:
...
> [code]
> cmake_minimum_required(VERSION 2.8)
> find_package(Automoc4 REQUIRED)
> include_directories(${CMAKE_CURRENT_SOURCE_DIR}
> ${CMAKE_CURRENT_BINARY_DIR}) find_package(Qt4)
> include_directories(
> ${QT_INCLUDES}
> ${CMAKE_CURRENT_BINARY_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR}
> )
> set(test_SRCS
> main.cpp
> )
> automoc4_add_executable(test ${test_SRCS})
> target_link_libraries(test ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
> [/code]
>
> Also,"set(CMAKE_AUTOMOC ON)" aborts the build:
> terminate called after throwing an instance of 'std::logic_error'
> what(): basic_string::_S_construct null not valid
> Aborted
Please add a bug in the cmake bug tracker for that:
http://public.kitware.com/Bug/
Thanks
Alex
--
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