Skip to content

Commit

Permalink
Add CMake build system
Browse files Browse the repository at this point in the history
  • Loading branch information
grigorig committed Sep 14, 2012
1 parent 2591c63 commit 176e3f3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 2.6)
project(ucdn)

add_library(ucdn_static STATIC ucdn.c ucdn.h)
add_library(ucdn_shared SHARED ucdn.c ucdn.h)
set_target_properties(ucdn_static PROPERTIES OUTPUT_NAME ucdn)
set_target_properties(ucdn_shared PROPERTIES OUTPUT_NAME ucdn)
set_target_properties(ucdn_shared PROPERTIES VERSION 1.0.0)
set_target_properties(ucdn_shared PROPERTIES SOVERSION 1)

install(TARGETS ucdn_static ucdn_shared
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(FILES ucdn.h DESTINATION include)

0 comments on commit 176e3f3

Please sign in to comment.