This repository contains all image plugins for nomacs that are officially supported. Compiling these plugins is most commonly needed to deploy on Windows.
Be sure that these dependencies are installed on your computer:
- Qt (version >= 5.14)
- CMake (version >= 3.14)
- Open a x64 Native Tools Command
- cd to this directory, then type:
REM make "C:/Qt/Qt-5.14.1-installer/5.14.2/msvc2017_64/"
make QT_PATH
where QT_PATH
points to your Qt directory.
First make sure, that the cmake compiles on Windows.
git submodule add link-to-your-fork
Add the following lines to the CMakeLists.txt (let's assume your plugin is named libjpg):
OPTION (ENABLE_JPG "Enable JPG Plugin" ON)
# ...
IF (ENABLE_JPG)
add_subdirectory(libjpg)
ENDIF(ENABLE_JPG)
# ...
IF(ENABLE_JPG)
MESSAGE(STATUS " with JPG .................. YES")
ELSE()
MESSAGE(STATUS " with JPG .................. NO")
ENDIF()