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.
|
- # Project setup
- PROJECT(xml)
- SET(VERSION_MAJOR "0")
- SET(VERSION_MINOR "1")
- SET(VERSION_PATCH "0")
- CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR)
-
-
- # Compiler setup
- SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG")
- SET(CMAKE_C_FLAGS_RELEASE "-O2")
-
-
- # Sources
- SET(SOURCE_DIRECTORY src)
- SET(TEST_SOURCE_DIRECTORY test)
-
-
- # Build library
- ADD_LIBRARY(xml STATIC
- ${SOURCE_DIRECTORY}/xml.c
- )
-
-
- # Build unit cases
- INCLUDE_DIRECTORIES(${SOURCE_DIRECTORY})
-
- ADD_EXECUTABLE(test-xml
- ${TEST_SOURCE_DIRECTORY}/test-xml
- )
- TARGET_LINK_LIBRARIES(test-xml xml)
-
-
- # Building example
- ADD_EXECUTABLE(example
- ${TEST_SOURCE_DIRECTORY}/example
- )
- TARGET_LINK_LIBRARIES(example xml)
-
|