Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.01 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.01 KB

nomacs imageformats

This repository contains all image plugins for nomacs that are officially supported. Compiling these plugins is most commonly needed to deploy on Windows.

Before you start

Be sure that these dependencies are installed on your computer:

  • Qt (version >= 5.14)
  • CMake (version >= 3.14)

Build imageformats on Windows

  • 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.

Add a new plugin

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()