From 17a61a8acdaf80d89289f7d5b3989c47d4a8f0c8 Mon Sep 17 00:00:00 2001 From: protomors Date: Mon, 29 Jan 2018 21:18:12 +0200 Subject: CMake: fixes for FreeImage. --- libs/freeimage/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 libs/freeimage/CMakeLists.txt (limited to 'libs/freeimage') diff --git a/libs/freeimage/CMakeLists.txt b/libs/freeimage/CMakeLists.txt new file mode 100644 index 0000000000..e16d65e9af --- /dev/null +++ b/libs/freeimage/CMakeLists.txt @@ -0,0 +1,7 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "src/FreeImage/*.cpp" "src/FreeImageToolkit/*.cpp" "src/Metadata/*.cpp" "src/LibJPEG/*.c" "src/LibPNG/*.c") +set(TARGET FreeImage) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) + +set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "FREEIMAGE_EXPORTS") +target_include_directories(${TARGET} PRIVATE src ${CMAKE_SOURCE_DIR}/libs/zlib/src) +target_link_libraries(${TARGET} Zlib) \ No newline at end of file -- cgit v1.2.3