restructure the link between the compiler and the library
This commit is contained in:
parent
841914bae8
commit
6ef6d14d18
@ -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
|
||||
|
@ -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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user