wex contains a library that offers c++ ex and vi functionality.
The syncped application shows a usage of this library, offering a full featured source code text editor.
git clone --recursive https://github.com/antonvw/wex.git
./build-gen.sh
mkdir build && cd build && cmake ..
devenv wex.sln /build Release
and for mingw add -G "MinGW Makefiles"
and do mingw32-make
.
install wex
(on windows as administrator cmake.exe -P cmake_install.cmake
)
and do find_package(WEX)
in your CMakeLists.txt. This will provide the
wex_FOUND
, wex_INCLUDE_DIR
, wex_LIB_DIR
and wex_LIBRARIES
variables.
An example is the syncped editor.