> If your binary to install is a CMake target (like in your example)
> you should use:
>
> install(targets foo
> RUNTIME DESTINATION ${foo_SOURCE_DIR}/bin)
>
This one didn't work neither :(
> moreover installing in ${foo_SOURCE_DIR} is a bit strange,
Well, there is a reason for this. My application is not supposed to be
installed to any public location(e.g /usr/local/bin) and for that
reason it places all binaries into the local bin directory not
polluted with CMake's internal stuff.
> SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
That did the trick, thank you so much! However, I'm still wondering
why install doesn't work since I may need some handy stuff provided
with install...
--
Best regards, Pavel
_______________________________________________
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