summaryrefslogtreecommitdiff
path: root/src/python/CMakeLists.txt
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2013-05-04 21:39:27 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2013-05-04 21:39:27 +0000
commitfec6336699f34758d3e6cb41b2edf902fedb9035 (patch)
tree8256c1dbf3ca7c9e58a3dbecf07cf826fb2e0ce2 /src/python/CMakeLists.txt
parent7dbffd7e2b0067e834801617c5c486e3177f6709 (diff)
downloadlibical-master.tar.gz
Diffstat (limited to 'src/python/CMakeLists.txt')
-rw-r--r--src/python/CMakeLists.txt72
1 files changed, 12 insertions, 60 deletions
diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
index 09ac348..a5a593c 100644
--- a/src/python/CMakeLists.txt
+++ b/src/python/CMakeLists.txt
@@ -1,72 +1,24 @@
-include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/libical ${CMAKE_SOURCE_DIR}/src/libicalss )
-
+include_directories(
+ ${CMAKE_SOURCE_DIR}/src
+ ${CMAKE_SOURCE_DIR}/src/libical
+ ${CMAKE_SOURCE_DIR}/src/libicalss
+)
########### next target ###############
-SET(LibicalWrap_LIB_SRCS
- LibicalWrap.c
+set(LibicalWrap_LIB_SRCS
+ LibicalWrap.c
)
-add_library(LibicalWrap SHARED ${LibicalWrap_LIB_SRCS})
+add_library(LibicalWrap ${LIBRARY_TYPE} ${LibicalWrap_LIB_SRCS})
target_link_libraries(LibicalWrap)
-set_target_properties(LibicalWrap PROPERTIES VERSION ${LIBICAL_LIB_VERSION_STRING} SOVERSION ${LIBICAL_LIB_MAJOR_VERSION})
+set_target_properties(LibicalWrap PROPERTIES
+ VERSION ${LIBICAL_LIB_VERSION_STRING}
+ SOVERSION ${LIBICAL_LIB_MAJOR_VERSION}
+)
install(TARGETS LibicalWrap DESTINATION lib)
-
########### install files ###############
-
-
-
-#original Makefile.am contents follow:
-
-#
-#lib_LTLIBRARIES = libLibicalWrap.la
-#
-#libLibicalWrap_la_SOURCES = LibicalWrap.c
-#
-#INCLUDES = \
-# -I$(top_builddir) \
-# -I$(top_srcdir)/src \
-# -I$(top_builddir)/src \
-# -I$(top_srcdir)/src/libical \
-# -I$(top_builddir)/src/libical \
-# -I$(top_srcdir)/src/libicalss \
-# $(PY_CFLAGS)
-#
-#LDADD = ../libical/libical.la ../libicalss/libicalss.la
-#
-#all: LibicalWrap.so
-#
-#LibicalWrap.c: LibicalWrap.i
-# swig -python -o LibicalWrap.c LibicalWrap.i
-#
-## This part should be done with libtool, but I don't know how to do
-## it. Libtool needs to generate a shared library in this directory
-## regardless of the value of AM_DISABLE_SHARED
-#LibicalWrap.so: LibicalWrap.c
-# ld -shared -o LibicalWrap.so LibicalWrap.o ../libical/.libs/libical.a ../libicalss/.libs/libicalss.a
-#
-#CLEANFILES = LibicalWrap.c LibicalWrap_wrap.doc Libical.pyc LibicalWrap.so
-#
-#EXTRA_DIST = \
-#Libical.py \
-#LibicalWrap.i \
-#python-binding.txt \
-#test.py \
-#Attendee.py \
-#Collection.py \
-#Component.py \
-#DerivedProperties.py \
-#Duration.py \
-#Error.py \
-#Gauge.py \
-#Period.py \
-#Property.py \
-#Store.py \
-#Time.py \
-#ChangeLog
-#
-#