> You don't have to do the copying yourself. Just tell CMake in which
> directory it should create the module by either setting the
> LIBRARY_OUTPUT_DIRECTORY target property or the
> CMAKE_LIBRARY_OUTPUT_DIRECTORY variable.
> 
> AFAIK the LOCATION property is only present for compatibility with
> CMake 2.4, and shouldn't be used in new code.

Hi Mike -- I don't know from which directory my module test will run when using 
ctest.  So, my test program does not have an easy way to know the relative path 
to LIBRARY_OUTPUT_DIRECTORY when making the dlopen() call.  Allowing my test 
program to assume the dll is in its local directory seemed to be the easiest 
solution.
_______________________________________________
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/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to