summaryrefslogtreecommitdiff
path: root/navit/map/garmin/CMakeLists.txt
blob: b52c8c577dc75e7ab76f22a706d8f1a8641482c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
add_executable(gentypes gentypes.c)

include_directories( ${CMAKE_CURRENT_BINARY_DIR})

# add the command to generate the source code
add_custom_command (
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/g2nbuiltin.h
  COMMAND gentypes ${CMAKE_CURRENT_SOURCE_DIR}/garmintypes.txt ${CMAKE_CURRENT_BINARY_DIR}/g2nbuiltin.h
  DEPENDS gentypes
  )

module_add_library(map_garmin garmin.c gar2navit.c g2nbuiltin.h)