Following Joshua Jensen suggestion, in order to configure stuff, by
setting prefix to ../ one seem to being able to direct placement of .dll
without copying or installing.
I got some inconsistent behaviour between release and Debug build though
when specifying:
SET_TARGET_PROPERTIES(${TargetName} PROPERTIES PREFIX "../../bin/lib")
Is this a not supported hack or is something one can count on?
Thanks in advance
Luigi
Luigi Calori wrote:
Probably dumb question, but was not able to found hints on docs:
Visual Studio projects generated do append Debug / Release to the
EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH paths.
Is there a way to avoid this and force them to generate straight
inside EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH paths ?
I use the following:
IF (CMAKE_GENERATOR MATCHES "Visual Studio")
SET_TARGET_PROPERTIES(${TargetName} PROPERTIES PREFIX "../")
SET_TARGET_PROPERTIES(${TargetName} PROPERTIES DEBUG_POSTFIX
".debug")
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio")
It's not perfect, but it backs the executable out a directory.
Josh
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake