Repository: thrift
Updated Branches:
  refs/heads/master 5d0a80678 -> 19e32dc0e


THRIFT-2850 CMake for Apache Thrift

add test/cpp and lib/py


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/19e32dc0
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/19e32dc0
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/19e32dc0

Branch: refs/heads/master
Commit: 19e32dc0ed5090d6cc464242ede7d862c146fc3b
Parents: 5d0a806
Author: Roger Meier <[email protected]>
Authored: Sun Apr 12 22:03:00 2015 +0200
Committer: Roger Meier <[email protected]>
Committed: Sun Apr 12 22:03:00 2015 +0200

----------------------------------------------------------------------
 lib/py/CMakeLists.txt | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/19e32dc0/lib/py/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/lib/py/CMakeLists.txt b/lib/py/CMakeLists.txt
new file mode 100755
index 0000000..e92658d
--- /dev/null
+++ b/lib/py/CMakeLists.txt
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+add_custom_target(python_build ALL
+    COMMAND ${PYTHON_EXECUTABLE} setup.py build
+    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+    COMMENT "Building Python library"
+)

Reply via email to