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