WIP: produce portable builds
This commit is contained in:
parent
a19692849a
commit
972dd480fc
4 changed files with 16 additions and 10 deletions
|
@ -1,12 +1,21 @@
|
|||
cmake_minimum_required(VERSION 3.7)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(
|
||||
feader
|
||||
)
|
||||
add_executable(
|
||||
feader-cli
|
||||
add_library(
|
||||
feader STATIC
|
||||
src/feader.c
|
||||
)
|
||||
add_library(
|
||||
feader SHARED
|
||||
src/feader.c
|
||||
sqlite3 STATIC
|
||||
src/sqlite/sqlite3.c
|
||||
)
|
||||
add_library(
|
||||
yxml STATIC
|
||||
src/yxml/yxml.c
|
||||
)
|
||||
target_link_libraries(
|
||||
feader
|
||||
sqlite3
|
||||
yxml
|
||||
)
|
|
@ -1,4 +1,5 @@
|
|||
#include "feader.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "sqlite/sqlite3.h"
|
||||
|
|
|
@ -9,10 +9,6 @@ typedef struct {
|
|||
char* errBuf;
|
||||
} xml;
|
||||
|
||||
size_t my_write_callback(char *ptr, size_t size, size_t nmemb, xml *x);
|
||||
|
||||
size_t get_xml(xml *x);
|
||||
|
||||
void parse_xml_items(xml *x);
|
||||
|
||||
void get_xml_ptr(xml* x, char* url);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <yxml.h>
|
||||
#include "yxml.h"
|
||||
#include <string.h>
|
||||
|
||||
typedef enum {
|
||||
|
|
Loading…
Reference in a new issue