[CMake] (no subject)

2013-08-29 Thread Thomas Taranowski
I'm running into somewhat of an arcane problem at the moment. The setup: * I have a source file that is autogenerated. In this case it is event_log_msg_if.ac.cpp. * I have marked the cpp as autogenerated via the 'set_source_files_properties' api * I have an add_library(foo /path/to/file/event_log

Re: [CMake] find_package and install

2013-08-29 Thread Craig Scott
Have a look for install_qt4_executable. We've been using that instead of having to explicitly install the Qt libraries ourselves. Much easier to maintain and it seems to deal well with all the platform differences. PS: I'm going from memory so I might have the name of that function slightly wro

[CMake] find_package and install

2013-08-29 Thread Lars Lars
Hello, I have the following configuration; FIND_PACKAGE(Qt4 4.7.1 COMPONENTS QtCore) IF (Qt4_FOUND) INCLUDE(${QT_USE_FILE}) MESSAGE(STATUS "QT_LIBRARIES:${QT_LIBRARIES}") ENDIF() # setup header and source files ADD_EXECUTABLE(TBD ${_SOURCES} ${_HEADERS}) TARGET_LINK_LIBRARI