diff options
author | samehkhamis <sameh.khamis@gmail.com> | 2015-07-30 20:01:16 +0300 |
---|---|---|
committer | samehkhamis <sameh.khamis@gmail.com> | 2015-07-30 20:01:16 +0300 |
commit | d5cb4121cc0173ca9d7948950ef215052e3eef81 (patch) | |
tree | c23cda377265209645d81f30a3a6b3e3eee216a3 /CMakeLists.txt | |
parent | 5d18767aa1bdc85dc09b95f9ac71e9eeb8bccca4 (diff) |
Compiling with libpng and libjpeg under Windows
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 96cfe9e..007a949 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,9 @@ if (JPEG_FOUND) include_directories (${JPEG_INCLUDE_DIR}) ADD_TORCH_PACKAGE(jpeg "${src}" "${luasrc}" "Image Processing") TARGET_LINK_LIBRARIES(jpeg luaT TH ${JPEG_LIBRARIES}) + IF(LUALIB) + TARGET_LINK_LIBRARIES(jpeg ${LUALIB}) + ENDIF() else (JPEG_FOUND) message ("WARNING: Could not find JPEG libraries, JPEG wrapper will not be installed") endif (JPEG_FOUND) @@ -26,6 +29,9 @@ if (PNG_FOUND) include_directories (${PNG_INCLUDE_DIR}) ADD_TORCH_PACKAGE(png "${src}" "${luasrc}" "Image Processing") TARGET_LINK_LIBRARIES(png luaT TH ${PNG_LIBRARIES}) + IF(LUALIB) + TARGET_LINK_LIBRARIES(png ${LUALIB}) + ENDIF() else (PNG_FOUND) message ("WARNING: Could not find PNG libraries, PNG wrapper will not be installed") endif (PNG_FOUND) |