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.
4 # The location, where the bison executable can be found
5 #SET (BISON_EXECUTABLE "${CMAKE_SOURCE_DIR}/../win_flex_bison-latest/win_bison.exe")
7 # The location, where to find the crypto++ header-files
8 #SET (BOOSTROOT "${CMAKE_SOURCE_DIR}/../boost_1_70_0")
10 # The location, where to find the crypto++ header-files
11 #SET (CRYTOPP_HEADER_PATH "${CMAKE_SOURCE_DIR}/../cryptopp")
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")
16 # The location, where the flex executable can be found
17 #SET (FLEX_EXECUTABLE "${CMAKE_SOURCE_DIR}/../win_flex_bison-latest/win_flex.exe")
19 # The location, where the headers of libgeoip can be found.
20 #SET (GEOIP_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../geoip-api-c-master/libGeoIP")
22 # The location, where to find libpng headers.
23 #SET (PNG_HEADER_DIR "${CMAKE_SOURCE_DIR}/../lpng1626")
25 # The location, where to find libpng.
26 #SET (PNG_LIB_DIR "${CMAKE_SOURCE_DIR}/../lpng1626/projects/vstudio/Debug")
28 # The location, where you extracted wx-sources
29 #SET (wxWidgets_ROOT_DIR "${CMAKE_SOURCE_DIR}/../wxWidgets")
31 # The location, where to find zlib.
32 #SET (ZLIB_ROOT "${CMAKE_SOURCE_DIR}/../zlib-1.2.8")
35 set (SEARCH_DIR_BISON ${BISON_EXECUTABLE})
38 if (BOOST_INCLUDE_DIR)
39 set (SEARCH_DIR_BOOST ${BOOST_INCLUDE_DIR})
42 if (CRYTOPP_HEADER_PATH)
43 set (SEARCH_DIR_CRYPTOPP_HEADER ${CRYTOPP_HEADER_PATH})
46 if (CRYTOPP_LIB_SEARCH_PATH)
47 set (SEARCH_DIR_CRYPTOPP_LIB ${CRYTOPP_LIB_SEARCH_PATH})
51 set (SEARCH_DIR_FLEX ${FLEX_EXECUTABLE})
54 if (GEOIP_INCLUDE_DIR)
55 set (SEARCH_DIR_GEOIP ${GEOIP_INCLUDE_DIR})
59 set (SEARCH_DIR_PNG_HEADER ${PNG_HEADER_DIR})
63 set (SEARCH_DIR_PNG_LIB ${PNG_LIB_DIR})
66 if (wxWidgets_ROOT_DIR)
67 set (SEARCH_DIR_wxWidgets ${wxWidgets_ROOT_DIR})
71 set (SEARCH_DIR_ZLIB ${ZLIB_ROOT})
74 set (SEARCH_DIR_BISON ${SEARCH_DIR_BISON} CACHE FILEPATH "Location of the bison executable" FORCE)
75 set (SEARCH_DIR_BOOST ${SEARCH_DIR_BOOST} CACHE PATH "Search hint for boost" FORCE)
76 set (SEARCH_DIR_CRYPTOPP_HEADER ${SEARCH_DIR_CRYPTOPP_HEADER} CACHE PATH "Search hint for crypto++ headers" FORCE)
77 set (SEARCH_DIR_CRYPTOPP_LIB ${SEARCH_DIR_CRYPTOPP_LIB} CACHE PATH "Search hint for crypto++ library" FORCE)
78 set (SEARCH_DIR_FLEX ${SEARCH_DIR_FLEX} CACHE FILEPATH "Location of the flex executable" FORCE)
79 set (SEARCH_DIR_GEOIP ${SEARCH_DIR_GEOIP} CACHE PATH "Search hint for geoip" FORCE)
80 set (SEARCH_DIR_PNG_HEADER ${SEARCH_DIR_PNG_HEADER} CACHE PATH "Search hint for libpng headers" FORCE)
81 set (SEARCH_DIR_PNG_LIB ${SEARCH_DIR_PNG_LIB} CACHE PATH "Search hint for libpng library" FORCE)
82 set (SEARCH_DIR_UPNP ${SEARCH_DIR_UPNP} CACHE PATH "Search hint for libupnp library" FORCE)
83 set (SEARCH_DIR_wxWidgets ${SEARCH_DIR_wxWidgets} CACHE PATH "Search hint for wxconfig executable" FORCE)
84 set (SEARCH_DIR_ZLIB ${SEARCH_DIR_ZLIB} CACHE PATH "Search hint for zlib" FORCE)
85 mark_as_advanced (FORCE SEARCH_DIR_BISON)
86 mark_as_advanced (FORCE SEARCH_DIR_BOOST)
87 mark_as_advanced (FORCE SEARCH_DIR_CRYPTOPP_HEADER)
88 mark_as_advanced (FORCE SEARCH_DIR_CRYPTOPP_LIB)
89 mark_as_advanced (FORCE SEARCH_DIR_FLEX)
90 mark_as_advanced (FORCE SEARCH_DIR_GEOIP)
91 mark_as_advanced (FORCE SEARCH_DIR_PNG_HEADER)
92 mark_as_advanced (FORCE SEARCH_DIR_PNG_LIB)
93 mark_as_advanced (FORCE SEARCH_DIR_UPNP)
94 mark_as_advanced (FORCE SEARCH_DIR_wxWidgets)
95 mark_as_advanced (FORCE SEARCH_DIR_ZLIB)
97 if (SEARCH_DIR_BISON AND NOT BISON_EXECUTABLE)
98 set (BISON_EXECUTABLE ${SEARCH_DIR_BISON})
101 if (SEARCH_DIR_BOOST AND NOT BOOST_INCLUDE_DIR)
102 set (BOOST_ROOT ${SEARCH_DIR_BOOST})
105 if (SEARCH_DIR_CRYPTOPP_HEADER AND NOT CRYTOPP_HEADER_PATH)
106 set (CRYTOPP_HEADER_PATH ${SEARCH_DIR_CRYPTOPP_HEADER})
109 if (SEARCH_DIR_CRYPTOPP_LIB AND NOT CRYTOPP_LIB_SEARCH_PATH)
110 set (CRYTOPP_LIB_SEARCH_PATH ${SEARCH_DIR_CRYPTOPP_LIB})
113 if (SEARCH_DIR_FLEX AND NOT FLEX_EXECUTABLE)
114 set (FLEX_EXECUTABLE ${SEARCH_DIR_FLEX})
117 if (SEARCH_DIR_GEOIP AND NOT GEOIP_INCLUDE_DIR)
118 set (GEOIP_INCLUDE_DIR ${SEARCH_DIR_GEOIP})
121 if (SEARCH_DIR_PNG_HEADER AND NOT PNG_HEADER_DIR)
122 set (PNG_HEADER_DIR ${SEARCH_DIR_PNG_HEADER})
125 if (SEARCH_DIR_PNG_LIB AND NOT PNG_LIB_DIR)
126 set (PNG_LIB_DIR ${SEARCH_DIR_PNG_LIB})
129 if (SEARCH_DIR_wxWidgets AND NOT wxWidgets_ROOT_DIR)
130 set (wxWidgets_ROOT_DIR ${SEARCH_DIR_wxWidgets})
133 if (SEARCH_DIR_ZLIB AND NOT ZLIB_ROOT)
134 set (ZLIB_ROOT ${SEARCH_DIR_ZLIB})