# file at some point.
#
set(CODEC2_VERSION_MAJOR 0)
-set(CODEC2_VERSION_MINOR 3)
+set(CODEC2_VERSION_MINOR 4)
# Set to patch level if needed, otherwise leave FALSE.
set(CODEC2_VERSION_PATCH FALSE)
set(CODEC2_VERSION "${CODEC2_VERSION_MAJOR}.${CODEC2_VERSION_MINOR}")
#set(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\freedv.exe")
set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
+ set(CPACK_NSIS_PACKAGE_NAME "FreeDV")
set(CPACK_NSIS_URL_INFO_ABOUT "http://freedv.org")
set(CPACK_NSIS_MODIFY_PATH OFF)
set(CPACK_NSIS_MENU_LINKS "http://freedv.org" "FreeDV Homepage")
endif()
set(CPACK_PACKAGE_INSTALL_DIRECTORY "FreeDV")
set(CPACK_PACKAGE_EXECUTABLES freedv;FreeDV)
- # There is a bug in NSI that does not handle full unix paths properly. Make
- # sure there is at least one set of four (4) backlasshes.
- #set(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
+ set(CPACK_STRIP_FILES TRUE)
+ # NSIS specific settings
set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\freedv.exe")
set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
+ set(CPACK_NSIS_PACKAGE_NAME "FreeDV")
set(CPACK_NSIS_URL_INFO_ABOUT "http://freedv.org")
set(CPACK_NSIS_MODIFY_PATH OFF)
set(CPACK_NSIS_MENU_LINKS "http://freedv.org" "FreeDV Homepage")
+if(CMAKE_CROSSCOMPILING)
+ set(CODEC2_CMAKE_ARGS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
+endif()
+
include(ExternalProject)
ExternalProject_Add(codec2
SVN_REPOSITORY https://svn.code.sf.net/p/freetel/code/codec2
- CMAKE_ARGS -DBUILD_SHARED_LIBS=FALSE
+ CMAKE_ARGS ${CODEC2_CMAKE_ARGS}
INSTALL_COMMAND ""
)
set(CODEC2_LIBRARIES