https://github.com/mlomb/freeimage
FreeImage with the CMake build system
https://github.com/mlomb/freeimage
Last synced: 11 months ago
JSON representation
FreeImage with the CMake build system
- Host: GitHub
- URL: https://github.com/mlomb/freeimage
- Owner: mlomb
- Created: 2017-08-10T01:25:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T01:12:08.000Z (over 6 years ago)
- Last Synced: 2024-10-06T13:42:42.011Z (over 1 year ago)
- Language: C++
- Homepage: http://freeimage.sourceforge.net
- Size: 5.99 MB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# FreeImage
FreeImage with the CMake build system
## Branches
* **master** FreeImage 3.17 with all formats
* **only-png** FreeImage 3.17 only with PNG enabled
* **3.18** FreeImage 3.18 only with BMP, JPEG and PNG enabled
## Usage
Clone this repo (in the right branch) and use `add_subdirectory` in your root CMakeLists.txt file.
```cmake
add_subdirectory(FreeImage)
# if you want RGB color order instead of BGR
# target_compile_definitions(FreeImage PUBLIC FREEIMAGE_COLORORDER=1)
# ...
target_include_directories(YourTarget PUBLIC ${FreeImage_SOURCE_DIR}/Source)
target_link_libraries(YourTarget FreeImage)
```