diff options
Diffstat (limited to 'libcnary/CMakeLists.txt')
| -rw-r--r-- | libcnary/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libcnary/CMakeLists.txt b/libcnary/CMakeLists.txt new file mode 100644 index 0000000..bbbe8ce --- /dev/null +++ b/libcnary/CMakeLists.txt | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | cmake_minimum_required(VERSION 2.6) | ||
| 2 | |||
| 3 | SET(libcnary_SRC | ||
| 4 | iterator.c | ||
| 5 | list.c | ||
| 6 | node.c | ||
| 7 | node_iterator.c | ||
| 8 | node_list.c ) | ||
| 9 | |||
| 10 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
| 11 | |||
| 12 | SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") | ||
| 13 | ADD_LIBRARY(libcnary STATIC ${libcnary_SRC}) | ||
| 14 | |||
| 15 | SET_TARGET_PROPERTIES(libcnary PROPERTIES OUTPUT_NAME cnary) | ||
| 16 | |||
