Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
1cfc6291
Commit
1cfc6291
authored
Feb 22, 2021
by
Volker Krause
Browse files
Fix build of the generator tools after moving the library code
parent
4630733b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/knowledgedb-generator/CMakeLists.txt
View file @
1cfc6291
...
@@ -12,13 +12,13 @@ add_executable(generate-knowledgedb
...
@@ -12,13 +12,13 @@ add_executable(generate-knowledgedb
timezonedbgenerator.cpp
timezonedbgenerator.cpp
trainstationdbgenerator.cpp
trainstationdbgenerator.cpp
util.cpp
util.cpp
../stringutil.cpp
../
lib/
stringutil.cpp
../knowledgedb/stationidentifier.cpp
../
lib/
knowledgedb/stationidentifier.cpp
)
)
target_compile_definitions
(
generate-knowledgedb PRIVATE
"KITINERARY_STATIC_DEFINE"
)
target_compile_definitions
(
generate-knowledgedb PRIVATE
"KITINERARY_STATIC_DEFINE"
)
target_include_directories
(
generate-knowledgedb PRIVATE
target_include_directories
(
generate-knowledgedb PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/../knowledgedb
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
lib/
knowledgedb
${
CMAKE_CURRENT_BINARY_DIR
}
/..
${
CMAKE_CURRENT_BINARY_DIR
}
/..
/lib
)
)
target_link_libraries
(
generate-knowledgedb PRIVATE Qt5::Network Qt5::Gui KOSM
)
target_link_libraries
(
generate-knowledgedb PRIVATE Qt5::Network Qt5::Gui KOSM
)
# extract all elements we are interested in (airports, terminals, stations at airports)
# extract all elements we are interested in (airports, terminals, stations at airports)
...
@@ -38,7 +38,7 @@ function(generate_db dbtype outfile)
...
@@ -38,7 +38,7 @@ function(generate_db dbtype outfile)
endif
()
endif
()
add_custom_command
(
add_custom_command
(
OUTPUT
${
outfile
}
OUTPUT
${
outfile
}
COMMAND generate-knowledgedb -o
${
CMAKE_CURRENT_SOURCE_DIR
}
/../knowledgedb/
${
outfile
}
-d
${
dbtype
}
${
extra_args
}
COMMAND generate-knowledgedb -o
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
lib/
knowledgedb/
${
outfile
}
-d
${
dbtype
}
${
extra_args
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
DEPENDS
DEPENDS
${
ARGN
}
${
ARGN
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment