summaryrefslogtreecommitdiff
path: root/libs
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
parentb8f8623145589530eae0bdb957e5337537797a92 (diff)
CMake: fixes for FreeImage.
Diffstat (limited to 'libs')
-rw-r--r--libs/CMakeLists.txt3
-rw-r--r--libs/freeimage/CMakeLists.txt7
2 files changed, 9 insertions, 1 deletions
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt
index 5c360a5ef0..006a77b2e4 100644
--- a/libs/CMakeLists.txt
+++ b/libs/CMakeLists.txt
@@ -1,3 +1,4 @@
add_subdirectory(zlib)
add_subdirectory(libjson)
-add_subdirectory(libaxolotl) \ No newline at end of file
+add_subdirectory(libaxolotl)
+add_subdirectory(freeimage) \ No newline at end of file
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