Browse Source

Merge pull request #546 from dota17/make_unistall

Add uninstall target in cmake
tags/json-c-0.14-20200419
Eric Haszlakiewicz GitHub 5 years ago
parent
commit
e94eb90f9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions
  1. +6
    -0
      CMakeLists.txt
  2. +6
    -1
      README.md

+ 6
- 0
CMakeLists.txt View File

@@ -353,6 +353,12 @@ else (DOXYGEN_FOUND)
message("Doxygen need to be installed to generate the doxygen documentation")
endif(DOXYGEN_FOUND)

# uninstall
add_custom_target(uninstall
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

# XXX for a normal full distribution we'll need to figure out
# XXX how to build both shared and static libraries.
# Probably leverage that to build a local VALGRIND=1 library for testing too.


+ 6
- 1
README.md View File

@@ -230,7 +230,7 @@ JSONC_TEST_TRACE=1 make test
```
and check the log files again.

To get doxygen documentation
To get doxygen documentation:

The libray documentation can be generated directly from the source codes using Doxygen tool:

@@ -239,6 +239,11 @@ make doc
google-chrome ../doc/html/index.html
```

To uninstall:

```sh
make uninstall
```

Linking to `libjson-c` <a name="linking">
----------------------


Loading…
Cancel
Save