Install targets?

6 views
Skip to first unread message

Brian

unread,
May 9, 2008, 9:35:21 AM5/9/08
to CuPP
This is my first exposure to CMake, but I don't think I see any
install targets. Am I missing something?

By adding the following line to the end of src/CMakeLists.txt, I was
able to get it to install libcupp to a system location:

INSTALL_TARGETS(/lib cupp)

No idea whether that's an appropriate change or not, though. I should
probably try to get the headers installed next.

Jens

unread,
May 9, 2008, 11:24:51 AM5/9/08
to CuPP
Hi Brian,

thanks for noting the install targets were missing in the CMake files.
I just made the following two changes to the trunk:

Added to src/CMakeLists.txt:
INSTALL(TARGETS cupp LIBRARY DESTINATION lib)

Added to CMakeLists.txt:
INSTALL(DIRECTORY include/cupp DESTINATION include)

It's working fine on my test system, but haven't checked at another
one.

-Jens
Reply all
Reply to author
Forward
0 new messages