added support for external generate_codebook for xross compiling
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 16 Jun 2015 20:32:29 +0000 (20:32 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 16 Jun 2015 20:32:29 +0000 (20:32 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2198 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/CMakeLists.txt

index 18a4ce71c53911d80d6b3ba93b7d6ff4409a2af8..dac874ae209ce8280f568b54c3173a70358403a6 100644 (file)
@@ -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