image: add crn support to the image plugin.
[xonotic/netradiant.git] / plugins / image / CMakeLists.txt
1 radiant_plugin(image
2         bmp.cpp bmp.h
3         dds.cpp dds.h
4         image.cpp
5         jpeg.cpp jpeg.h
6         ktx.cpp ktx.h
7         pcx.cpp pcx.h
8         tga.cpp tga.h
9         crn.cpp crn.h
10         )
11
12 find_package(JPEG REQUIRED)
13 target_include_directories(image PRIVATE ${JPEG_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/libs/crunch)
14 target_link_libraries(image PRIVATE ddslib etclib crnlib ${JPEG_LIBRARIES})
15 target_compile_options(image PRIVATE -fexceptions)