Hi,
In cmake 3.5.0, 3.5.2 and 3.6.0, my resource file is compiled every time
I build, even when they are not changed.
|
cmake_minimum_required(VERSION 3.2)|
|project(auto_moc_uic_rcc)set(CMAKE_INCLUDE_CURRENT_DIR
ON)set(CMAKE_AUTOMOC ON)set(CMAKE_AUTOUIC ON)set(CMAKE_AUTORCC
ON)find_package
(Qt5WidgetsREQUIRED)add_executable(${PROJECT_NAME}main.cpp
MainWindowMainWindow.ui rcc.qrc
)target_link_libraries(${PROJECT_NAME}Qt5::Widgets)|
If instead I use |qt5_add_resources(RCC rcc.qrc) and add ${RCC} to
add_executable the resource file is not build everytime.
I use ninja as generator.
Is this a bug or is my cmakelists.txt file not correct?
Thanks,
Wim
|
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake