[CMake] How to deal with "make uninstall" ?

Group kermit.group at gmail.com
Sun Dec 7 02:13:16 EST 2008


Hello, I'm a newbie of cmake. In a simple project, I worte the
CMakelists.txt file like this:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
cmake_minimum_required(VERSION 2.6)
PROJECT(FREERECITE)

ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(dict)

INSTALL(FILES ../bin/FreeRecite-core DESTINATION bin)
INSTALL(FILES COPYRIGHT README DESTINATION share/doc/FreeRecite)
INSTALL(DIRECTORY dict/ DESTINATION share)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

When I use "make install", everything do as I wanted.
But I can't use "make uninstall". How to deal with it?

And I hope you can give me more links about cmake tutorial.
Thanks.

Kermit


More information about the CMake mailing list