summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01cc4ce..e4558d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,8 +8,10 @@ if (WIN32)
SET(USR_FOLDER "C:/DEVEL/UNIX" CACHE PATH "Path to libraries and includes")
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES};${USR_FOLDER}/include)
INCLUDE_DIRECTORIES(${USR_FOLDER}/include)
+ INCLUDE_DIRECTORIES(${CMAKE_INSTALL_PREFIX}/include)
+ INCLUDE_DIRECTORIES(${CMAKE_INSTALL_PREFIX}/include/libxml2)
- find_library(ZLIB_LIBRARY NAMES zlib PATHS ${USR_FOLDER} PATH_SUFFIXES "lib")
+ find_library(ZLIB_LIBRARY NAMES zlib z PATHS ${USR_FOLDER} PATH_SUFFIXES "lib")
if (NOT ZLIB_LIBRARY)
MESSAGE(FATAL_ERROR "Could not find zlib")
endif()
@@ -24,17 +26,17 @@ if (WIN32)
MESSAGE(FATAL_ERROR "Could not find iconv")
endif ()
- find_library(ENCA_LIBRARY NAMES libenca PATHS ${USR_FOLDER} PATH_SUFFIXES "lib")
+ find_library(ENCA_LIBRARY NAMES libenca PATHS ${USR_FOLDER} ${CMAKE_INSTALL_PREFIX} PATH_SUFFIXES "lib")
if (ENCA_LIBRARY)
SET(HAVE_ENCA TRUE)
endif()
- find_library(LIBRCD_LIBRARY NAMES rcd PATHS ${USR_FOLDER} PATH_SUFFIXES "lib")
+ find_library(LIBRCD_LIBRARY NAMES rcd PATHS ${USR_FOLDER} ${CMAKE_INSTALL_PREFIX} PATH_SUFFIXES "lib")
if (LIBRCD_LIBRARY)
SET(HAVE_RCD TRUE)
endif()
- find_library(WSOCK_LIBRARY NAMES wsock32)
+ find_library(WSOCK_LIBRARY NAMES wsock32 PATHS ${USR_FOLDER} PATH_SUFFIXES "lib")
if (NOT WSOCK_LIBRARY)
MESSAGE(FATAL_ERROR "Could not find wsock library")
endif()