forked from grigorig/ucdn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |