Parent Directory | Revision Log
import files
1 | add_executable(gentypes gentypes.c) |
2 | |
3 | # add the command to generate the source code |
4 | add_custom_command ( |
5 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/g2nbuiltin.h |
6 | COMMAND gentypes ${CMAKE_CURRENT_SOURCE_DIR}/garmintypes.txt ${CMAKE_CURRENT_BINARY_DIR}/g2nbuiltin.h |
7 | DEPENDS gentypes |
8 | ) |
9 | |
10 | module_add_library(map_garmin garmin.c gar2navit.c g2nbuiltin.h) |
11 | set_property( |
12 | TARGET map_garmin |
13 | APPEND PROPERTY COMPILE_FLAGS "-I${CMAKE_CURRENT_BINARY_DIR}" |
14 | ) |
Visit the ZANavi Wiki |