Copy the GN3S v2 firmware binary file to the install folder if the variable GN3S_DRIVER is set.

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@302 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2012-12-28 15:57:03 +00:00
parent a032dfaefd
commit 20f4b4ceea
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,12 @@ if($ENV{GN3S_DRIVER})
set(OPT_LIBRARIES ${OPT_LIBRARIES} ${GRGN3S_LIBRARIES})
set(OPT_DRIVER_INCLUDE_DIRS ${OPT_DRIVER_INCLUDE_DIRS} ${GRGN3S_INCLUDE_DIRS})
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} gn3s_signal_source.cc)
# Copy GN3S firmware binary file to install folder
message(STATUS "Copying the GN3S firmware binary file to install folder")
file(COPY ${CMAKE_SOURCE_DIR}/firmware/GN3S_v2/bin/gn3s_firmware.ihx
DESTINATION ${CMAKE_SOURCE_DIR}/install/gn3s_firmware.ihx
)
endif($ENV{GN3S_DRIVER})