diff options
author | anonymous <local@localhost> | 2010-07-02 18:08:47 +0700 |
---|---|---|
committer | anonymous <local@localhost> | 2010-07-02 22:14:18 +0700 |
commit | 60e0a04c5096ca0b33066ac73e2424491ef04cb4 (patch) | |
tree | ae14aacb2f2abef5db70825e735c1f8eb0178541 | |
parent | 16c253aab349547b256482e6dcc86029d8fe2eda (diff) | |
download | libcxxrt-60e0a04c5096ca0b33066ac73e2424491ef04cb4.tar.gz libcxxrt-60e0a04c5096ca0b33066ac73e2424491ef04cb4.tar.bz2 libcxxrt-60e0a04c5096ca0b33066ac73e2424491ef04cb4.tar.xz |
Cmake project is added
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 20 | ||||
-rw-r--r-- | test/CMakeLists.txt | 0 |
3 files changed, 25 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..abd531c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 2.8.1) + +add_subdirectory(src) +add_subdirectory(test) + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..f3c80b2 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,20 @@ + +set(CXXRT_SOURCES + dynamic_cast.cc + exception.cc + guard.cc + terminate.cc + typeinfo.cc + ) + + +add_library(cxxrt-static STATIC ${CXXRT_SOURCES}) +add_library(cxxrt-shared SHARED ${CXXRT_SOURCES}) + +set_target_properties(cxxrt-static cxxrt-shared PROPERTIES + OUTPUT_NAME "cxxrt" + ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib" + LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib") + + + diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/CMakeLists.txt |