1 | project (OSCam C)
|
---|
2 |
|
---|
3 | #----------------------- minimum version of cmake to use ------------
|
---|
4 |
|
---|
5 | # if you want to switch to 2.6 min, please look at the escaped definitions
|
---|
6 | # later in this file (the add_definitions in 2.6 don't need to be escaped),
|
---|
7 | # and remove the CMP0005 policy.
|
---|
8 | # the CMP0003 could also be removed for cmake 2.6
|
---|
9 | cmake_minimum_required (VERSION 2.4)
|
---|
10 | if(COMMAND cmake_policy)
|
---|
11 | cmake_policy(SET CMP0005 OLD)
|
---|
12 | cmake_policy(SET CMP0003 NEW)
|
---|
13 | endif(COMMAND cmake_policy)
|
---|
14 |
|
---|
15 | #----------------------- detect system ------------------------------
|
---|
16 |
|
---|
17 | if (CMAKE_CROSSCOMPILING)
|
---|
18 | if (OSCAM_SYSTEM_NAME MATCHES "Tuxbox")
|
---|
19 | set (OSCamOperatingSystem "Tuxbox")
|
---|
20 | set (CS_OS_HW "tuxbox")
|
---|
21 | set (CS_OS_SYS "linux")
|
---|
22 | elseif (OSCAM_SYSTEM_NAME MATCHES "Coolstream")
|
---|
23 | set (OSCamOperatingSystem "NeutrinoHD")
|
---|
24 | set (CS_OS_HW "coolstream")
|
---|
25 | set (CS_OS_SYS "linux")
|
---|
26 | elseif (OSCAM_SYSTEM_NAME MATCHES "NSLU2")
|
---|
27 | set (OSCamOperatingSystem "SlugOS")
|
---|
28 | set (CS_OS_HW "nslu2")
|
---|
29 | set (CS_OS_SYS "linux")
|
---|
30 | elseif (OSCAM_SYSTEM_NAME MATCHES "Fonera2")
|
---|
31 | set (OSCamOperatingSystem "Fonera2")
|
---|
32 | set (CS_OS_HW "fonera2")
|
---|
33 | set (CS_OS_SYS "linux")
|
---|
34 | elseif (OSCAM_SYSTEM_NAME MATCHES "WRT54G")
|
---|
35 | set (OSCamOperatingSystem "WRT54G")
|
---|
36 | set (CS_OS_HW "wrt54g")
|
---|
37 | set (CS_OS_SYS "linux")
|
---|
38 | elseif (OSCAM_SYSTEM_NAME MATCHES "Amino")
|
---|
39 | set (OSCamOperatingSystem "Amino")
|
---|
40 | set (CS_OS_HW "amino")
|
---|
41 | set (CS_OS_SYS "linux")
|
---|
42 | else (OSCAM_SYSTEM_NAME MATCHES "Tuxbox")
|
---|
43 | message (STATUS "Unknown cross system name: <${CMAKE_SYSTEM_NAME}>")
|
---|
44 | set (OSCamOperatingSystem "Unknown")
|
---|
45 | set (CS_OS_HW "unknown")
|
---|
46 | set (CS_OS_SYS "unknown")
|
---|
47 | endif (OSCAM_SYSTEM_NAME MATCHES "Tuxbox")
|
---|
48 | else (CMAKE_CROSSCOMPILING)
|
---|
49 | if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
---|
50 | set (OSCamOperatingSystem "Linux")
|
---|
51 | set (CS_OS_HW "pc")
|
---|
52 | set (CS_OS_SYS "linux")
|
---|
53 | elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
54 | set (OSCamOperatingSystem "Mac OS X")
|
---|
55 | set (CS_OS_HW "mac")
|
---|
56 | set (CS_OS_SYS "macosx")
|
---|
57 | SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" )
|
---|
58 | SET( CMAKE_CFLAGS "${CMAKE_CFLAGS} -m32" )
|
---|
59 | elseif (${CYGWIN})
|
---|
60 | set (OSCamOperatingSystem "Windows/Cygwin")
|
---|
61 | set (CS_OS_HW "pc")
|
---|
62 | set (CS_OS_SYS "cygwin")
|
---|
63 | set (CMAKE_SYSTEM_PROCESSOR "i386")
|
---|
64 | else (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
---|
65 | message (STATUS "Unknown system name: <${CMAKE_SYSTEM_NAME}>")
|
---|
66 | set (OSCamOperatingSystem "Unknown")
|
---|
67 | set (CS_OS_HW "unknown")
|
---|
68 | set (CS_OS_SYS "unknown")
|
---|
69 | endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
---|
70 | endif (CMAKE_CROSSCOMPILING)
|
---|
71 |
|
---|
72 | #----------------------- some paths ------------------------------
|
---|
73 |
|
---|
74 | set (OPTIONAL_LINK_DIR "" CACHE STRING "Some optional link directories")
|
---|
75 | set (OPTIONAL_INCLUDE_DIR "" CACHE STRING "Some optional include directories")
|
---|
76 |
|
---|
77 | include_directories (
|
---|
78 | ${CMAKE_CURRENT_SOURCE_DIR}/csctapi
|
---|
79 | ${CMAKE_CURRENT_SOURCE_DIR}/cscrypt
|
---|
80 | ${OPTIONAL_INCLUDE_DIR}
|
---|
81 | )
|
---|
82 | link_directories (${OPTIONAL_LINK_DIR})
|
---|
83 |
|
---|
84 | #----------------------- global options ------------------------------
|
---|
85 |
|
---|
86 | if (OSCamOperatingSystem MATCHES "Linux")
|
---|
87 | add_definitions ("-DOS_LINUX")
|
---|
88 | set (DEFAULT_CS_CONFDIR "/usr/local/etc")
|
---|
89 | elseif (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
90 | add_definitions ("-DOS_MACOSX -DHAVE_PCSC -DNEED_DAEMON -DCS_NOSHM -DHAVE_PTHREAD_H -DUSE_PTHREAD")
|
---|
91 | set (DEFAULT_CS_CONFDIR "/usr/local/etc")
|
---|
92 | elseif (OSCamOperatingSystem MATCHES "Tuxbox")
|
---|
93 | add_definitions ("-DOS_LINUX -DTUXBOX -DPPC")
|
---|
94 | set (DEFAULT_CS_CONFDIR "/var/tuxbox/config")
|
---|
95 | elseif (OSCamOperatingSystem MATCHES "NeutrinoHD")
|
---|
96 | add_definitions ("-DOS_LINUX -DTUXBOX -DCOOL")
|
---|
97 | set (DEFAULT_CS_CONFDIR "/var/tuxbox/config")
|
---|
98 | elseif (OSCamOperatingSystem MATCHES "SlugOS")
|
---|
99 | add_definitions ("-DOS_LINUX")
|
---|
100 | set (DEFAULT_CS_CONFDIR "/var/etc")
|
---|
101 | elseif (OSCamOperatingSystem MATCHES "Fonera2")
|
---|
102 | add_definitions ("-DOS_LINUX -DMIPSEL -DUCLIBC")
|
---|
103 | set (DEFAULT_CS_CONFDIR "/var/etc")
|
---|
104 | elseif (OSCamOperatingSystem MATCHES "WRT54G")
|
---|
105 | add_definitions ("-DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO")
|
---|
106 | set (DEFAULT_CS_CONFDIR "/jffs/etc/config/oscam")
|
---|
107 | elseif (OSCamOperatingSystem MATCHES "Amino")
|
---|
108 | add_definitions ("-DOS_LINUX")
|
---|
109 | set (DEFAULT_CS_CONFDIR "/usr/local/etc")
|
---|
110 | elseif (OSCamOperatingSystem MATCHES "Windows/Cygwin")
|
---|
111 | add_definitions ("-DOS_CYGWIN32 -static")
|
---|
112 | set (DEFAULT_CS_CONFDIR ".")
|
---|
113 | endif (OSCamOperatingSystem MATCHES "Linux")
|
---|
114 |
|
---|
115 | set (CS_CONFDIR ${DEFAULT_CS_CONFDIR} CACHE STRING "Default path for the config files")
|
---|
116 | add_definitions ("-DCS_CONFDIR=\\\"${CS_CONFDIR}\\\"")
|
---|
117 |
|
---|
118 | set (CS_OS_CPU ${CMAKE_SYSTEM_PROCESSOR})
|
---|
119 | set (CS_OSTYPE ${CS_OS_CPU}-${CS_OS_HW}-${CS_OS_SYS})
|
---|
120 |
|
---|
121 | add_definitions ("-DUSE_CMAKE")
|
---|
122 | add_definitions ("-DCS_OSTYPE=\\\"${CS_OSTYPE}\\\"")
|
---|
123 | add_definitions ("-DCS_OS_CPU=\\\"${CS_OS_CPU}\\\"")
|
---|
124 | add_definitions ("-DCS_OS_HW=\\\"${CS_OS_HW}\\\"")
|
---|
125 | add_definitions ("-DCS_OS_SYS=\\\"${CS_OS_SYS}\\\"")
|
---|
126 |
|
---|
127 | #----------------------- subdirectories ------------------------------
|
---|
128 |
|
---|
129 | include (CheckIncludeFile)
|
---|
130 | check_include_file ("openssl/aes.h" HAVE_AES)
|
---|
131 | if (HAVE_AES)
|
---|
132 | add_definitions ("-DHAVE_AES")
|
---|
133 | endif (HAVE_AES)
|
---|
134 |
|
---|
135 | check_include_file ("openssl/sha.h" HAVE_SHA)
|
---|
136 | if (HAVE_SHA)
|
---|
137 | add_definitions ("-DHAVE_SHA")
|
---|
138 | endif (HAVE_SHA)
|
---|
139 |
|
---|
140 | check_include_file ("usb.h" HAVE_LIBUSB)
|
---|
141 | if (HAVE_LIBUSB)
|
---|
142 | add_definitions ("-DHAVE_LIBUSB")
|
---|
143 | elseif (HAVE_USB)
|
---|
144 | message(STATUS " no libusb found. No smartreader ")
|
---|
145 | endif (HAVE_LIBUSB)
|
---|
146 |
|
---|
147 | check_include_file ("PCSC/wintypes.h" HAVE_PCSC)
|
---|
148 | if (HAVE_PCSC)
|
---|
149 | add_definitions ("-DHAVE_PCSC")
|
---|
150 | if (OSCamOperatingSystem MATCHES "Linux")
|
---|
151 | add_definitions ("-I/usr/include/PCSC")
|
---|
152 | endif (OSCamOperatingSystem MATCHES "Linux")
|
---|
153 | endif (HAVE_PCSC)
|
---|
154 |
|
---|
155 | #----------------------- subdirectories ------------------------------
|
---|
156 |
|
---|
157 | add_subdirectory (csctapi)
|
---|
158 | add_subdirectory (cscrypt)
|
---|
159 |
|
---|
160 | #----------------------- file groups ------------------------------
|
---|
161 |
|
---|
162 | file (GLOB csmodules_srcs "module-*.c")
|
---|
163 | file (GLOB csmodules_hdrs "module-*.h")
|
---|
164 | file (GLOB csreaders_srcs "reader-*.c")
|
---|
165 | file (GLOB csreaders_hdrs "reader-*.h")
|
---|
166 | file (GLOB csoscam_srcs "oscam-*.c")
|
---|
167 | file (GLOB csoscam_hdrs "oscam-*.h")
|
---|
168 | file (GLOB exe_srcs "oscam.c")
|
---|
169 | file (GLOB exe_hdrs "globals.h")
|
---|
170 | file (GLOB all_srcs ${csmodules_srcs} ${csreaders_srcs} ${csoscam_srcs} ${exe_srcs})
|
---|
171 |
|
---|
172 | #----------------------- modules ------------------------------
|
---|
173 |
|
---|
174 | set (csmodules "csmodules")
|
---|
175 | add_library (${csmodules} STATIC ${csmodules_srcs} ${csmodules_hdrs})
|
---|
176 |
|
---|
177 | #----------------------- readers ------------------------------
|
---|
178 |
|
---|
179 | set (csreaders "csreaders")
|
---|
180 | add_library (${csreaders} STATIC ${csreaders_srcs} ${csreaders_hdrs})
|
---|
181 |
|
---|
182 | #----------------------- other oscam files ------------------------------
|
---|
183 |
|
---|
184 | set (csoscam "csoscam")
|
---|
185 | add_library (${csoscam} STATIC ${csoscam_srcs} ${csoscam_hdrs})
|
---|
186 |
|
---|
187 | #----------------------- the executable ------------------------------
|
---|
188 |
|
---|
189 | set (exe_name "oscam")
|
---|
190 | add_executable (${exe_name} ${exe_srcs} ${exe_hdrs})
|
---|
191 | target_link_libraries (${exe_name} ${csoscam} ${csmodules} ${csreaders} csctapi cscrypt pthread)
|
---|
192 | if (HAVE_AES)
|
---|
193 | target_link_libraries (${exe_name} crypto)
|
---|
194 | endif (HAVE_AES)
|
---|
195 | if (HAVE_PCSC)
|
---|
196 | if (NOT OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
197 | target_link_libraries (${exe_name} pcsclite)
|
---|
198 | endif (NOT OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
199 | endif (HAVE_PCSC)
|
---|
200 |
|
---|
201 | if (HAVE_LIBUSB)
|
---|
202 | target_link_libraries (${exe_name} usb)
|
---|
203 | endif (HAVE_LIBUSB)
|
---|
204 |
|
---|
205 | add_dependencies (${exe_name} ${csoscam} ${csreaders} ${csmodules})
|
---|
206 |
|
---|
207 | #----------------------- specific options ------------------------------
|
---|
208 |
|
---|
209 | if (OSCamOperatingSystem MATCHES "Linux")
|
---|
210 | elseif (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
211 | FIND_LIBRARY (PCSC_LIBRARY PCSC)
|
---|
212 | message (STATUS "OS X system PCSC : ${PCSC_LIBRARY}")
|
---|
213 | target_link_libraries ( ${exe_name} ${PCSC_LIBRARY})
|
---|
214 | set (HAVE_PCSC "1")
|
---|
215 |
|
---|
216 | FIND_PATH( USB_INCLUDE usb.h)
|
---|
217 | if( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" )
|
---|
218 | set (HAVE_LIBUSB "0")
|
---|
219 | message (STATUS "OS X libusb includes not found .. no smartreader support")
|
---|
220 | else ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" )
|
---|
221 | message (STATUS "OS X libusb include : ${USB_INCLUDE}")
|
---|
222 | FIND_LIBRARY (USB_LIBRARY usb)
|
---|
223 | message (STATUS "OS X libusb : ${USB_LIBRARY}")
|
---|
224 | target_link_libraries ( ${exe_name} ${USB_LIBRARY})
|
---|
225 | include_directories( SYSTEM ${USB_INCLUDE})
|
---|
226 | set (HAVE_LIBUSB "1")
|
---|
227 | endif ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" )
|
---|
228 | elseif (OSCamOperatingSystem MATCHES "Tuxbox")
|
---|
229 | target_link_libraries ( ${exe_name} dl)
|
---|
230 | elseif (OSCamOperatingSystem MATCHES "NeutrinoHD")
|
---|
231 | target_link_libraries ( ${exe_name} rt nxp )
|
---|
232 | elseif (OSCamOperatingSystem MATCHES "SlugOS")
|
---|
233 | elseif (OSCamOperatingSystem MATCHES "Fonera2")
|
---|
234 | elseif (OSCamOperatingSystem MATCHES "WRT54G")
|
---|
235 | elseif (OSCamOperatingSystem MATCHES "Amino")
|
---|
236 | elseif (OSCamOperatingSystem MATCHES "Windows/cygwin")
|
---|
237 | endif (OSCamOperatingSystem MATCHES "Linux")
|
---|
238 |
|
---|
239 | #----------------------- put svnversion in the build ------------------------------
|
---|
240 | # at every target rebuild, we re-build the oscam.c compilation...
|
---|
241 |
|
---|
242 | # add the needed dependency
|
---|
243 | add_dependencies (${exe_name} svnversion)
|
---|
244 | add_dependencies (${csoscam} svnversion-log)
|
---|
245 |
|
---|
246 | # how to re-build the files which printout the version
|
---|
247 | add_custom_target (
|
---|
248 | svnversion
|
---|
249 | ALL
|
---|
250 | touch ${CMAKE_CURRENT_SOURCE_DIR}/oscam.c
|
---|
251 | )
|
---|
252 | add_custom_target (
|
---|
253 | svnversion-log
|
---|
254 | ALL
|
---|
255 | touch ${CMAKE_CURRENT_SOURCE_DIR}/oscam-log.c
|
---|
256 | )
|
---|
257 |
|
---|
258 | #if the svnversion program is absent, this will leave the SVN_REVISION string empty,
|
---|
259 | #but won't stop CMake.
|
---|
260 | execute_process (COMMAND "svnversion" "-n" "${CMAKE_CURRENT_SOURCE_DIR}" OUTPUT_VARIABLE OSCAM_SVN_REVISION)
|
---|
261 |
|
---|
262 | if (OSCAM_SVN_REVISION)
|
---|
263 | string (REGEX REPLACE "[0-9]+:" "" OSCAM_SVN_REVISION "${OSCAM_SVN_REVISION}")
|
---|
264 | string (REPLACE "M" "" OSCAM_SVN_REVISION "${OSCAM_SVN_REVISION}")
|
---|
265 | string (REPLACE "exported" "0" OSCAM_SVN_REVISION "${OSCAM_SVN_REVISION}")
|
---|
266 | else (OSCAM_SVN_REVISION)
|
---|
267 | set (OSCAM_SVN_REVISION "0")
|
---|
268 | endif (OSCAM_SVN_REVISION)
|
---|
269 |
|
---|
270 | # pass the version to the compilations as a define
|
---|
271 | add_definitions ("-D'CS_SVN_VERSION=\"${OSCAM_SVN_REVISION}\"'")
|
---|
272 |
|
---|
273 | #----------------------- global compile and link options ------------------------------
|
---|
274 |
|
---|
275 | # some optimisations
|
---|
276 | if (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
277 | add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -m32")
|
---|
278 | else (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
279 | add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer")
|
---|
280 | endif (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
281 |
|
---|
282 | # we don't want the '-rdynamic' in the link command
|
---|
283 | set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
---|
284 |
|
---|
285 | # we want to strip
|
---|
286 | if (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
287 | set (CMAKE_EXE_LINKER_FLAGS "-s -m32")
|
---|
288 | else (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
289 | set (CMAKE_EXE_LINKER_FLAGS "-s")
|
---|
290 | endif (OSCamOperatingSystem MATCHES "Mac OS X")
|
---|
291 | #----------------------- installation -----------------------------
|
---|
292 |
|
---|
293 | file (GLOB config_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/oscam.*")
|
---|
294 | file (GLOB doc_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/txt/*.txt")
|
---|
295 | file (GLOB man1_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/man/*.1")
|
---|
296 | file (GLOB man5_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/man/*.5")
|
---|
297 | file (GLOB example_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.ac"
|
---|
298 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.cert"
|
---|
299 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.conf"
|
---|
300 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.guess"
|
---|
301 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.ird"
|
---|
302 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.server"
|
---|
303 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.services"
|
---|
304 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.srvid"
|
---|
305 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/doc/example/oscam.user")
|
---|
306 | file (GLOB monitor_files "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/monitor/mpcs*.sh"
|
---|
307 | "${CMAKE_CURRENT_SOURCE_DIR}/Distribution/monitor/mpcs*.tar")
|
---|
308 |
|
---|
309 | install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${exe_name}${CMAKE_EXECUTABLE_SUFFIX} DESTINATION bin COMPONENT bin)
|
---|
310 | install (FILES ${config_files} DESTINATION etc COMPONENT config)
|
---|
311 | install (FILES ${doc_files} DESTINATION share/doc/oscam COMPONENT doc)
|
---|
312 | install (FILES ${man1_files} DESTINATION share/man/man1 COMPONENT doc)
|
---|
313 | install (FILES ${man5_files} DESTINATION share/man/man5 COMPONENT doc)
|
---|
314 | install (FILES ${example_files} DESTINATION share/doc/oscam/example COMPONENT doc)
|
---|
315 | install (FILES ${monitor_files} DESTINATION share/doc/oscam/monitor COMPONENT doc)
|
---|
316 |
|
---|
317 | #----------------------- we can use CPack to build pacakges --------------------------
|
---|
318 |
|
---|
319 | # get version from source file
|
---|
320 | execute_process (COMMAND grep CS_VERSION ${CMAKE_CURRENT_SOURCE_DIR}/globals.h
|
---|
321 | OUTPUT_VARIABLE CS_VERSION)
|
---|
322 | string (REGEX REPLACE ".*\"\(.*\)\".*" "\\1" CS_VERSION ${CS_VERSION})
|
---|
323 | string (REGEX REPLACE "\(.*\)\\..*\\..*" "\\1" CPACK_PACKAGE_VERSION_MAJOR ${CS_VERSION})
|
---|
324 | string (REGEX REPLACE ".*\\.\(.*\)\\..*" "\\1" CPACK_PACKAGE_VERSION_MINOR ${CS_VERSION})
|
---|
325 | string (REGEX REPLACE ".*\\..*\\.\(.*\)" "\\1" CPACK_PACKAGE_VERSION_PATCH ${CS_VERSION})
|
---|
326 | set (CPACK_PACKAGE_VERSION
|
---|
327 | "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
---|
328 |
|
---|
329 | # compute my filename
|
---|
330 | set (CPACK_PACKAGE_FILE_NAME
|
---|
331 | "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}-${CS_OSTYPE}")
|
---|
332 |
|
---|
333 | # wich archive we want to generate
|
---|
334 | set (CPACK_GENERATOR "TGZ")
|
---|
335 |
|
---|
336 | # what to put in the archive
|
---|
337 | set (CPACK_STRIP_FILES TRUE)
|
---|
338 | set (CPACK_COMPONENTS_ALL bin)# config doc)
|
---|
339 |
|
---|
340 | # ok, we can now use CPack
|
---|
341 | include (CPack)
|
---|
342 |
|
---|
343 | #----------------------- printout resume -----------------------------
|
---|
344 |
|
---|
345 | message (STATUS "")
|
---|
346 | message (STATUS " operating system: ${OSCamOperatingSystem}")
|
---|
347 | message (STATUS " system type: ${CS_OSTYPE}")
|
---|
348 | message (STATUS " system: ${CS_OS_SYS}")
|
---|
349 | message (STATUS " cpu: ${CS_OS_CPU}")
|
---|
350 | message (STATUS " hw: ${CS_OS_HW}")
|
---|
351 | if (HAVE_AES)
|
---|
352 | message (STATUS " use system aes functions")
|
---|
353 | else (HAVE_AES)
|
---|
354 | message (STATUS " use built-in aes functions")
|
---|
355 | endif (HAVE_AES)
|
---|
356 | if (HAVE_SHA)
|
---|
357 | message (STATUS " use system sha functions")
|
---|
358 | else (HAVE_SHA)
|
---|
359 | message (STATUS " use built-in sha functions")
|
---|
360 | endif (HAVE_SHA)
|
---|
361 | if (HAVE_PCSC)
|
---|
362 | message (STATUS " use system pcsc functions")
|
---|
363 | endif (HAVE_PCSC)
|
---|
364 | message (STATUS "")
|
---|