From: drowe67 Date: Tue, 16 Jun 2015 20:32:29 +0000 (+0000) Subject: added support for external generate_codebook for xross compiling X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=2c492181ddec5004333c9f27a3a8ba21bb026b94;p=freetel-svn-tracking.git added support for external generate_codebook for xross compiling git-svn-id: https://svn.code.sf.net/p/freetel/code@2198 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/CMakeLists.txt b/codec2-dev/src/CMakeLists.txt index 18a4ce71..dac874ae 100644 --- a/codec2-dev/src/CMakeLists.txt +++ b/codec2-dev/src/CMakeLists.txt @@ -91,8 +91,10 @@ set(CODEBOOKSGE ${D}/gecb.txt) # when crosscompiling import the executable targets from a file if(CMAKE_CROSSCOMPILING) - set(IMPORT_EXECUTABLES "IMPORTFILE-NOTFOUND" CACHE FILEPATH "Point to the export file from a native build") - include(${IMPORT_EXECUTABLES}) + #set(IMPORT_EXECUTABLES "IMPORTFILE-NOTFOUND" CACHE FILEPATH "Point to the export file from a native build") + #include(${IMPORT_EXECUTABLES}) + add_executable(generate_codebook IMPORTED) + set_property(TARGET generate_codebook PROPERTY IMPORTED_LOCATION ${GENERATE_CODEBOOK}) else(CMAKE_CROSSCOMPILING) # Build code generator binaries. These do not get installed. # generate_codebook