summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt38
1 files changed, 24 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6414e7d..f57582b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -740,25 +740,35 @@ if (NOT AUDIOTOOLBOX_FOUND)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_STATIC})
endif()
-find_package(MILES COMPONENTS audio video core network session utils)
+if (WIN32)
+ find_package(MILES)
+else()
+ find_package(MILES COMPONENTS audio video core network session utils debug image)
+endif()
+#set(JPEG_ROOT_PATH "" CACHE STRING "Where to find libjpeg")
if (MILES_FOUND)
- # openal is only needed for miles
- find_package(OpenAL)
- find_package(JPEG)
- find_package(ICONV)
+ if (NOT WIN32)
+ # openal is only needed for miles
+ find_package(OpenAL)
+ find_package(JPEG)
+ find_package(ICONV)
- if (OPENAL_FOUND AND ICONV_FOUND AND JPEG_FOUND)
+ if (OPENAL_FOUND AND ICONV_FOUND AND JPEG_FOUND)
+ include_directories (${MILES_INCLUDE_DIR})
+ list (APPEND USCXML_OPT_LIBS ${MILES_LIBRARIES})
+ include_directories (${ICONV_INCLUDE_DIR})
+ list (APPEND USCXML_OPT_LIBS ${ICONV_LIBRARIES})
+ include_directories (${JPEG_INCLUDE_DIR})
+ list (APPEND USCXML_OPT_LIBS ${JPEG_LIBRARIES})
+ include_directories (${OPENAL_INCLUDE_DIR})
+ list (APPEND USCXML_OPT_LIBS ${OPENAL_LIBRARY})
+ else()
+ set(MILES_FOUND OFF)
+ endif()
+ else()
include_directories (${MILES_INCLUDE_DIR})
list (APPEND USCXML_OPT_LIBS ${MILES_LIBRARIES})
- include_directories (${ICONV_INCLUDE_DIR})
- list (APPEND USCXML_OPT_LIBS ${ICONV_LIBRARIES})
- include_directories (${JPEG_INCLUDE_DIR})
- list (APPEND USCXML_OPT_LIBS ${JPEG_LIBRARIES})
- include_directories (${OPENAL_INCLUDE_DIR})
- list (APPEND USCXML_OPT_LIBS ${OPENAL_LIBRARY})
- else()
- set(MILES_FOUND OFF)
endif()
endif()