# ============================ Library dependencies ============================
if (WIN32)
- list(APPEND CMAKE_LIBRARY_PATH ${WINDOWS_DEPENDENCY_DIR}/lib)
- list(APPEND CMAKE_INCLUDE_PATH ${WINDOWS_DEPENDENCY_DIR}/include ${WINDOWS_DEPENDENCY_DIR}/bin)
+ list(APPEND CMAKE_PREFIX_PATH ${WINDOWS_DEPENDENCY_DIR})
else()
list(APPEND CMAKE_INCLUDE_PATH /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
endif()
find_package(RxSpencer REQUIRED)
# Find DLLs on Windows
- find_file(EXPAT_RUNTIME_LIBRARIES NAMES libexpat.dll expat.dll)
+ find_program(EXPAT_RUNTIME_LIBRARIES NAMES libexpat.dll expat.dll)
if (CMAKE_CL_64)
- find_file(MSYS_RUNTIME_LIBRARIES NAMES msys-2.0.dll)
+ find_program(MSYS_RUNTIME_LIBRARIES NAMES msys-2.0.dll)
endif()
endif()
find_path(ANN_INCLUDE_DIR ANN/ANN.h)
find_library(ANN_LIBRARY NAMES ANN ann libann)
-find_file(ANN_RUNTIME_LIBRARY ANN.dll)
+find_program(ANN_RUNTIME_LIBRARY ANN.dll)
include(FindPackageHandleStandardArgs)
if (WIN32)
find_library(Cairo_LIBRARY NAMES cairo)
- find_file(Cairo_RUNTIME_LIBRARY NAMES cairo.dll)
- find_file(EXPAT_RUNTIME_LIBRARY NAMES expat.dll)
- find_file(FONTCONFIG_RUNTIME_LIBRARY NAMES fontconfig.dll)
- find_file(PIXMAN_RUNTIME_LIBRARY NAMES pixman-1.dll)
+ find_program(Cairo_RUNTIME_LIBRARY NAMES cairo.dll)
+ find_program(EXPAT_RUNTIME_LIBRARY NAMES expat.dll)
+ find_program(FONTCONFIG_RUNTIME_LIBRARY NAMES fontconfig.dll)
+ find_program(PIXMAN_RUNTIME_LIBRARY NAMES pixman-1.dll)
find_package_handle_standard_args(Cairo DEFAULT_MSG
Cairo_INCLUDE_DIR
find_path(GD_INCLUDE_DIR gd.h)
find_library(GD_LIBRARY NAMES gd libgd)
-find_file(GD_RUNTIME_LIBRARY libgd.dll)
+find_program(GD_RUNTIME_LIBRARY libgd.dll)
include(FindPackageHandleStandardArgs)
if (WIN32)
find_library(PANGO_LIBRARY NAMES pango-1.0)
find_library(PangoCairo_LIBRARY NAMES pangocairo-1.0)
- find_file(GLIB_RUNTIME_LIBRARY NAMES glib-2.dll)
- find_file(GOBJECT_RUNTIME_LIBRARY NAMES gobject-2.dll)
- find_file(HARFBUZZ_RUNTIME_LIBRARY NAMES libharfbuzz-0.dll)
- find_file(PANGO_RUNTIME_LIBRARY NAMES pango-1.dll)
- find_file(PangoCairo_RUNTIME_LIBRARY NAMES pangocairo-1.dll)
- find_file(PANGOFT_RUNTIME_LIBRARY NAMES pangoft2-1.dll)
- find_file(PANGOWIN_RUNTIME_LIBRARY NAMES pangowin32-1.dll)
+ find_program(GLIB_RUNTIME_LIBRARY NAMES glib-2.dll)
+ find_program(GOBJECT_RUNTIME_LIBRARY NAMES gobject-2.dll)
+ find_program(HARFBUZZ_RUNTIME_LIBRARY NAMES libharfbuzz-0.dll)
+ find_program(PANGO_RUNTIME_LIBRARY NAMES pango-1.dll)
+ find_program(PangoCairo_RUNTIME_LIBRARY NAMES pangocairo-1.dll)
+ find_program(PANGOFT_RUNTIME_LIBRARY NAMES pangoft2-1.dll)
+ find_program(PANGOWIN_RUNTIME_LIBRARY NAMES pangowin32-1.dll)
find_package_handle_standard_args(PangoCairo DEFAULT_MSG
GLIB_INCLUDE_DIR