image: add crn support to the image plugin.
[xonotic/netradiant.git] / plugins / image / CMakeLists.txt
index e1f40cc..f0b021c 100644 (file)
@@ -6,8 +6,10 @@ radiant_plugin(image
         ktx.cpp ktx.h
         pcx.cpp pcx.h
         tga.cpp tga.h
+        crn.cpp crn.h
         )
 
 find_package(JPEG REQUIRED)
-target_include_directories(image PRIVATE ${JPEG_INCLUDE_DIR})
-target_link_libraries(image PRIVATE ddslib etclib ${JPEG_LIBRARIES})
+target_include_directories(image PRIVATE ${JPEG_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/libs/crunch)
+target_link_libraries(image PRIVATE ddslib etclib crnlib ${JPEG_LIBRARIES})
+target_compile_options(image PRIVATE -fexceptions)