1# Uncomment one or more of the following lines to tell cmake, where to find it's header and 2# libs. You can specify the path also using -D<VAR> from commandline. 3 4# The location, where the bison executable can be found 5#SET (BISON_EXECUTABLE "${CMAKE_SOURCE_DIR}/../win_flex_bison-latest/win_bison.exe") 6 7# The location, where to find the crypto++ header-files 8#SET (BOOSTROOT "${CMAKE_SOURCE_DIR}/../boost_1_70_0") 9 10# The location, where to find the crypto++ header-files 11#SET (CRYTOPP_HEADER_PATH "${CMAKE_SOURCE_DIR}/../cryptopp") 12 13# The location, where the linkable output of crypto++ compilation can be found. 14#SET (CRYTOPP_LIB_SEARCH_PATH "${CMAKE_SOURCE_DIR}/../cryptopp/Win32/Output/Debug") 15 16# The location, where the flex executable can be found 17#SET (FLEX_EXECUTABLE "${CMAKE_SOURCE_DIR}/../win_flex_bison-latest/win_flex.exe") 18 19# The location, where the headers of libgeoip can be found. 20#SET (GEOIP_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../geoip-api-c-master/libGeoIP") 21 22# The location, where to find libpng headers. 23#SET (PNG_HEADER_DIR "${CMAKE_SOURCE_DIR}/../lpng1626") 24 25# The location, where to find libpng. 26#SET (PNG_LIB_DIR "${CMAKE_SOURCE_DIR}/../lpng1626/projects/vstudio/Debug") 27 28# The location, where you extracted wx-sources 29#SET (wxWidgets_ROOT_DIR "${CMAKE_SOURCE_DIR}/../wxWidgets") 30 31# The location, where to find zlib. 32#SET (ZLIB_ROOT "${CMAKE_SOURCE_DIR}/../zlib-1.2.8") 33 34if (BISON_EXECUTABLE) 35 set (SEARCH_DIR_BISON ${BISON_EXECUTABLE}) 36endif() 37 38if (BOOST_INCLUDE_DIR) 39 set (SEARCH_DIR_BOOST ${BOOST_INCLUDE_DIR}) 40endif() 41 42if (CRYTOPP_HEADER_PATH) 43 set (SEARCH_DIR_CRYPTOPP_HEADER ${CRYTOPP_HEADER_PATH}) 44endif() 45 46if (CRYTOPP_LIB_SEARCH_PATH) 47 set (SEARCH_DIR_CRYPTOPP_LIB ${CRYTOPP_LIB_SEARCH_PATH}) 48endif() 49 50if (FLEX_EXECUTABLE) 51 set (SEARCH_DIR_FLEX ${FLEX_EXECUTABLE}) 52endif() 53 54if (GEOIP_INCLUDE_DIR) 55 set (SEARCH_DIR_GEOIP ${GEOIP_INCLUDE_DIR}) 56endif() 57 58if (PNG_HEADER_DIR) 59 set (SEARCH_DIR_PNG_HEADER ${PNG_HEADER_DIR}) 60endif() 61 62if (PNG_LIB_DIR) 63 set (SEARCH_DIR_PNG_LIB ${PNG_LIB_DIR}) 64endif() 65 66if (wxWidgets_ROOT_DIR) 67 set (SEARCH_DIR_wxWidgets ${wxWidgets_ROOT_DIR}) 68endif() 69 70if (ZLIB_ROOT) 71 set (SEARCH_DIR_ZLIB ${ZLIB_ROOT}) 72endif() 73 74set (SEARCH_DIR_BISON ${SEARCH_DIR_BISON} CACHE FILEPATH "Location of the bison executable" FORCE) 75set (SEARCH_DIR_BOOST ${SEARCH_DIR_BOOST} CACHE PATH "Search hint for boost" FORCE) 76set (SEARCH_DIR_CRYPTOPP_HEADER ${SEARCH_DIR_CRYPTOPP_HEADER} CACHE PATH "Search hint for crypto++ headers" FORCE) 77set (SEARCH_DIR_CRYPTOPP_LIB ${SEARCH_DIR_CRYPTOPP_LIB} CACHE PATH "Search hint for crypto++ library" FORCE) 78set (SEARCH_DIR_FLEX ${SEARCH_DIR_FLEX} CACHE FILEPATH "Location of the flex executable" FORCE) 79set (SEARCH_DIR_GEOIP ${SEARCH_DIR_GEOIP} CACHE PATH "Search hint for geoip" FORCE) 80set (SEARCH_DIR_PNG_HEADER ${SEARCH_DIR_PNG_HEADER} CACHE PATH "Search hint for libpng headers" FORCE) 81set (SEARCH_DIR_PNG_LIB ${SEARCH_DIR_PNG_LIB} CACHE PATH "Search hint for libpng library" FORCE) 82set (SEARCH_DIR_UPNP ${SEARCH_DIR_UPNP} CACHE PATH "Search hint for libupnp library" FORCE) 83set (SEARCH_DIR_wxWidgets ${SEARCH_DIR_wxWidgets} CACHE PATH "Search hint for wxconfig executable" FORCE) 84set (SEARCH_DIR_ZLIB ${SEARCH_DIR_ZLIB} CACHE PATH "Search hint for zlib" FORCE) 85mark_as_advanced (FORCE SEARCH_DIR_BISON) 86mark_as_advanced (FORCE SEARCH_DIR_BOOST) 87mark_as_advanced (FORCE SEARCH_DIR_CRYPTOPP_HEADER) 88mark_as_advanced (FORCE SEARCH_DIR_CRYPTOPP_LIB) 89mark_as_advanced (FORCE SEARCH_DIR_FLEX) 90mark_as_advanced (FORCE SEARCH_DIR_GEOIP) 91mark_as_advanced (FORCE SEARCH_DIR_PNG_HEADER) 92mark_as_advanced (FORCE SEARCH_DIR_PNG_LIB) 93mark_as_advanced (FORCE SEARCH_DIR_UPNP) 94mark_as_advanced (FORCE SEARCH_DIR_wxWidgets) 95mark_as_advanced (FORCE SEARCH_DIR_ZLIB) 96 97if (SEARCH_DIR_BISON AND NOT BISON_EXECUTABLE) 98 set (BISON_EXECUTABLE ${SEARCH_DIR_BISON}) 99endif() 100 101if (SEARCH_DIR_BOOST AND NOT BOOST_INCLUDE_DIR) 102 set (BOOST_ROOT ${SEARCH_DIR_BOOST}) 103endif() 104 105if (SEARCH_DIR_CRYPTOPP_HEADER AND NOT CRYTOPP_HEADER_PATH) 106 set (CRYTOPP_HEADER_PATH ${SEARCH_DIR_CRYPTOPP_HEADER}) 107endif() 108 109if (SEARCH_DIR_CRYPTOPP_LIB AND NOT CRYTOPP_LIB_SEARCH_PATH) 110 set (CRYTOPP_LIB_SEARCH_PATH ${SEARCH_DIR_CRYPTOPP_LIB}) 111endif() 112 113if (SEARCH_DIR_FLEX AND NOT FLEX_EXECUTABLE) 114 set (FLEX_EXECUTABLE ${SEARCH_DIR_FLEX}) 115endif() 116 117if (SEARCH_DIR_GEOIP AND NOT GEOIP_INCLUDE_DIR) 118 set (GEOIP_INCLUDE_DIR ${SEARCH_DIR_GEOIP}) 119endif() 120 121if (SEARCH_DIR_PNG_HEADER AND NOT PNG_HEADER_DIR) 122 set (PNG_HEADER_DIR ${SEARCH_DIR_PNG_HEADER}) 123endif() 124 125if (SEARCH_DIR_PNG_LIB AND NOT PNG_LIB_DIR) 126 set (PNG_LIB_DIR ${SEARCH_DIR_PNG_LIB}) 127endif() 128 129if (SEARCH_DIR_wxWidgets AND NOT wxWidgets_ROOT_DIR) 130 set (wxWidgets_ROOT_DIR ${SEARCH_DIR_wxWidgets}) 131endif() 132 133if (SEARCH_DIR_ZLIB AND NOT ZLIB_ROOT) 134 set (ZLIB_ROOT ${SEARCH_DIR_ZLIB}) 135endif() 136