For our project we set QT_BINARY_DIR which finds most of the Qt5XXX ones (it is
defined in the FindQt5.cmake).
We however also added the non-standard QT_LIBRARY_CMAKE_DIR to search for the
Qt5 when they are not installed in the default location (the default we put
is
Can't you simply change the cmake compiler and cflags using CMAKE_CXX_COMPILER
and CMAKE_CXX_FLAGS (or add_definitions())?
For example something like:
cmake -DCMAKE_CXX_COMPILER=scalasca -DCMAKE_CXX_FLAGS=-instrument mpicxx
From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On
of the headers
So now I can run make dist and it will use my binary files instead of the
source files when creating the package.
I hope this will help other people that may have struggle searching on the web
on how to replace a file when packaging sources with CPack.
Thomas RICHARD
--
Powered
Hi Lloyd,
Personally I copy the DLLs to the VS folder (so that the program can be run
from visual studio) using the following script.
It looks more complicated than it is.
A macro is available to several of my projects to select which Qt module they
use and create a list of dlls to copy.
Then
} ${HEADERS})
set_source_files_properties(${HEADERS_MOC} PROPERTIES GENERATED TRUE)
target_link_libraries(ParamGui ${QT_LIBRARIES})
From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of
Lloyd
Sent: 18 April 2013 12:40
To: Thomas Richard
Cc: CMake ML
Subject: Re: [CMake] Copy
?
Thank you for reading,
Thomas RICHARD
--
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