On 2013-10-23 15:41, Paul Smith wrote:
I need to be able to run a command after a target is created, every time
the target is created. I need this to happen regardless of the command
line.
Does add_custom_command(TARGET myTarget POST_BUILD ...) do what you want?
--
Matthew
--
Powered by www
I need to be able to run a command after a target is created, every time
the target is created. I need this to happen regardless of the command
line.
For example, for Makefile generators if someone runs "make myTarget"
directly (if myTarget is a program for example) I still need this
command to b
When I generate NMake files for a project, to build on Windows,
CMAKE_CXX_FLAGS_DEBUG includes /RTC1. That's fine for most of the libraries in
the build tree, but one uses /CLR and that conflicts with /RTC1. Is there a
way to update the compiler flags for a particular target?
A search reveals
I have a target where I do this:
SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES "")
to hide 3rd party libraries from the link interface.
When I do
if(APPLE)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
endif()
I get an error at generate time.
This is different than my previous ex
The command I pass to fixup_bundle is
fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${LIBRARY_DIRS}\")
The arguments printed out is
APPS =
/Users/jongseoyoon/jsy/crkit/builds/release-1.6_build_2.8.3_2nd/crkit_build/install/bin/TestApp
QTPLUGINS =
LIBRARY_DIRS =
/Users/foo/build/install/i