Last change
on this file since 4738 was 4738, checked in by _network, 13 years ago |
use libcrypto functions if available
|
File size:
912 bytes
|
Line | |
---|
1 | project (cscrypt)
|
---|
2 |
|
---|
3 | file (GLOB cscrypt_srcs "*.c")
|
---|
4 | file (GLOB cscrypt_hdrs "*.h")
|
---|
5 |
|
---|
6 | if (NOT HAVE_LIBCRYPTO)
|
---|
7 | file (GLOB aes_srcs "aes/*.c")
|
---|
8 | file (GLOB aes_hdrs "aes/*.h")
|
---|
9 | file (GLOB sha_srcs "sha/*.c")
|
---|
10 | file (GLOB sha_hdrs "sha/*.h")
|
---|
11 | endif (NOT HAVE_LIBCRYPTO)
|
---|
12 |
|
---|
13 | if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
14 | add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s -m32")
|
---|
15 | set (CMAKE_C_FLAGS_DEBUG "-O0 -g -m32")
|
---|
16 | set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g -m32")
|
---|
17 | else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
18 | add_definitions ("-Winline -Werror")
|
---|
19 | set (CMAKE_C_FLAGS "-O2 -finline-functions -fomit-frame-pointer -s")
|
---|
20 | set (CMAKE_C_FLAGS_DEBUG "-O0 -g")
|
---|
21 | set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
---|
22 | endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
23 |
|
---|
24 | set (lib_name "cscrypt")
|
---|
25 |
|
---|
26 | add_library (${lib_name} STATIC ${cscrypt_srcs} ${aes_srcs} ${sha_srcs} ${cscrypt_hdrs} ${aes_hdrs} ${sha_hdrs})
|
---|
27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.