The following source tree exists:
*-source
*----subsource
*--------Source1.hpp
*----Source1.hpp
Both files. / Source 1.hpp and. / Subsource / Source1.hpp should be handled by moc. When using automoc, it puts the moc output files in the same directory with the same name, since it is not possible to overwrite the file.
Qt - 5.2
CMake - 2.8.12
The CMake files are quite large, but here is a quick example:
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_subdirectory("${CMAKE_SOURCE_DIR}/components/Com1" ./Com1)
file(GLOB_RECURSE CPP_FILES source
Any solutions?
source
share