Last change
on this file since 5375 was 4606, checked in by cogsi, 13 years ago |
cmakelists update
|
-
Property svn:mime-type
set to
text/plain
|
File size:
652 bytes
|
Line | |
---|
1 | project (algo)
|
---|
2 |
|
---|
3 | file (GLOB algo_srcs "*.c")
|
---|
4 | file (GLOB algo_hdrs "*.h")
|
---|
5 |
|
---|
6 | if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
7 | add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s -m32")
|
---|
8 | set (CMAKE_C_FLAGS_DEBUG "-O0 -g -m32")
|
---|
9 | set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g -m32")
|
---|
10 | else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
11 | add_definitions ("-Winline -Werror")
|
---|
12 | set (CMAKE_C_FLAGS "-O2 -finline-functions -fomit-frame-pointer -s")
|
---|
13 | set (CMAKE_C_FLAGS_DEBUG "-O0 -g")
|
---|
14 | set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
---|
15 | endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
---|
16 |
|
---|
17 | set (lib_name "algo")
|
---|
18 |
|
---|
19 | add_library (${lib_name} STATIC ${algo_srcs} ${algo_hdrs}) |
---|
Note:
See
TracBrowser
for help on using the repository browser.