Simple XML subset parser comparable to glib's Markup parser, but without any dependencies in one self contained file. Forked from https://github.com/ooxi/xml.c
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

40 rader
694 B

  1. # Project setup
  2. PROJECT(xml)
  3. SET(VERSION_MAJOR "0")
  4. SET(VERSION_MINOR "1")
  5. SET(VERSION_PATCH "1")
  6. CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR)
  7. # Compiler setup
  8. SET(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
  9. SET(CMAKE_C_FLAGS_RELEASE "-O2")
  10. # Sources
  11. SET(SOURCE_DIRECTORY src)
  12. SET(TEST_SOURCE_DIRECTORY test)
  13. # Build library
  14. ADD_LIBRARY(xml STATIC
  15. ${SOURCE_DIRECTORY}/xml.c
  16. )
  17. # Build unit cases
  18. INCLUDE_DIRECTORIES(${SOURCE_DIRECTORY})
  19. ADD_EXECUTABLE(test-xml
  20. ${TEST_SOURCE_DIRECTORY}/test-xml
  21. )
  22. TARGET_LINK_LIBRARIES(test-xml xml)
  23. # Building example
  24. ADD_EXECUTABLE(example
  25. ${TEST_SOURCE_DIRECTORY}/example
  26. )
  27. TARGET_LINK_LIBRARIES(example xml)