restructure the link between the compiler and the library

This commit is contained in:
Chris Cromer 2023-02-16 02:36:16 -03:00
parent 841914bae8
commit 6ef6d14d18
Signed by: cromer
GPG Key ID: FA91071797BEEEC2
4 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ lib = library('obelisk',
install : true
)
libobelisk_dep = declare_dependency(
libobelisk = declare_dependency(
include_directories : incdirs,
link_with : lib,
sources : obelisk_lib_sources

View File

@ -1,9 +1,9 @@
#include "knowledge_base.h"
#include "lexer.h"
#include "lib/include/obelisk.h"
#include "lib/version.h"
#include "main.h"
#include "obelisk.h"
#include "parser.h"
#include "version.h"
#include <iomanip>
#include <iostream>

View File

@ -1,7 +1,7 @@
subdir('lib')
obelisk_sources = files(
'obelisk.cpp',
'main.cpp',
'lexer.cpp',
'parser.cpp',
'knowledge_base.cpp'
@ -23,7 +23,7 @@ link_args = ' ' + r.stdout().replace('\n', ' ')
executable('obelisk',
obelisk_sources,
dependencies : [libobelisk_dep, sqlite3],
dependencies : [libobelisk, sqlite3],
cpp_args : cpp_args.split(),
link_args : link_args.split(),
install : true