[CMake] install question

ankit jain ankitguddu at gmail.com
Tue Mar 10 08:01:08 EDT 2009


2009/3/10 Sharon Melamed <sharonm at voltaire.com>

>  Hi,
>
>
>
> My main CmakeList.txt file look like this:
>
>
>
> cmake_minimum_required (VERSION 2.6)
>
> project (vos)
>
>
>
> add_subdirectory (system  BUILD)
>
> add_subdirectory (osal BUILD)
>
> add_subdirectory (logger BUILD)
>
> add_subdirectory (loggerConfigTool BUILD)
>
> add_subdirectory (voltSyslogd BUILD)
>
> add_subdirectory (chassis BUILD)
>
> add_subdirectory (eventHandler BUILD)
>
>
>
> in the system subdirectory the CmakeList.txt file look like this:
>
>
>
> set(main_SRCS main.cpp)
>
>
>
> include_directories(${vos_SOURCE_DIR}/include)
>
> link_directories(${vos_SOURCE_DIR}/BUILD)
>
>
>
> add_executable(vos ${main_SRCS})
>
>
>
> target_link_libraries(vos rt pthread logger osal)
>
> install(TARGETS vos RUNTIME DESTINATION /bin )
>
>
>
> After running cmake the make install command builds the vos executable but
> does not install it.
>
> I looked in install_manifest.txt and it was empty.
>
>
>
> Any ideas what I’m doing wrong?
>
>
>
> Thanks.
>
>
>
> Sharon.
> It woking now for me..

Check your CMAKE_INSTALL_PREFIX path whatever u have set. By default on
linux it is set to /usr/local but if u want it to something else you can set
it in CMakeCache.txt file.

Hope it will work ..

Ankit

>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090310/3c850e24/attachment.htm>


More information about the CMake mailing list