summaryrefslogtreecommitdiff
path: root/navit/map/garmin/CMakeLists.txt
blob: b60128a9cdc3ae5701f78fc6fb2664e90e9e0ee6 (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)