#set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# Work around for not using a svn working copy.
-add_definitions(-DSVN_REVISION="1239")
+add_definitions(-DSVN_REVISION="1238")
# Set default build flags.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
Linux:
Codec2 may not be in your distribution so build yourself or use the cmake option to build statically into FreeDV.
Windws:
-It's easiest to use the cmake option: USE_STATIC_PORTAUDIO"
+It's easiest to use the cmake option: USE_STATIC_CODEC2"
)
endif(CODEC2_INCLUDE_DIR AND CODEC2_LIBRARY)
else(NOT USE_STATIC_CODEC2)
--- /dev/null
+The CMake configuration for FDMDV2 (FreeDV) should be considered experimental at
+this time but has been thouroughly tested on Fedora Linux and will likely work
+well on most *nix systems and has many advanages over the autotools config.
+
+- Builds against system libraries (default).
+- Or optionally download, build, and statically link with required libraries on
+ an individual basis. See USE_STATIC_??? options.
+- Has experimental NSIS packaing support for Windows (WIN32) targets. *nix
+ systems should rely on 'make install' as the packages (RPM & DEB) created by
+ CPack are questionable.
+
+ To test the cmake build make a directory anywhere underneath (or outside of)
+the source directory.
+
+Linux command line example:
+
+$ cd /path/to/fdmdv2
+$ mkdir build_linux
+$ cd build_linux
+$ cmake ../ (defaults to /usr/local, use CMAKE_INSTALL_PREFIX to override)
+(if no errors)
+$ make
+(as root)
+$ make install
--- /dev/null
+set(WXWIDGETS_TARBALL "wxWidgets-2.9.4")
+
+include(ExternalProject)
+ExternalProject_Add(wxWidgets
+ URL http://downloads.sourceforge.net/wxwindows/${WXWIDGETS_TARBALL}.tar.bz2
+ BUILD_IN_SOURCE 1
+ INSTALL_DIR external/dist
+ CONFIGURE_COMMAND ./configure --disable-shared --prefix=${CMAKE_BINARY_DIR}/external/dist
+ BUILD_COMMAND $(MAKE)
+ INSTALL_COMMAND $(MAKE) install
+)
+set(WXCONFIG "${CMAKE_BINARY_DIR}/external/dist/bin/wx-config")
+set(WXRC "${CMAKE_BINARY_DIR}/external/dist/bin/wxrc")
+list(APPEND FREEDV_LINK_LIBS ${wxWidgets_LIBRARIES})
+list(APPEND FREEDV_STATIC_DEPS wxWidgets)