summaryrefslogtreecommitdiff
path: root/libs/freeimage/CMakeLists.txt
diff options
context:
space:
mode:
authorprotomors <protomors@gmail.com>2018-01-29 21:18:12 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-01-31 22:10:11 +0300
commit17a61a8acdaf80d89289f7d5b3989c47d4a8f0c8 (patch)
treeeb17012e5dbcefc38410569e642671ef5f3a3369 /libs/freeimage/CMakeLists.txt
parentb8f8623145589530eae0bdb957e5337537797a92 (diff)
CMake: fixes for FreeImage.
Diffstat (limited to 'libs/freeimage/CMakeLists.txt')
-rw-r--r--libs/freeimage/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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