summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorpengxuanzheng <[email protected]>2020-09-11 16:13:02 +0800
committerpengxuanzheng <[email protected]>2020-09-11 16:13:02 +0800
commitcd0649bfbcadaeca8d7e37b31d3e9a191160ce04 (patch)
tree90e25d35da4fc1087ad07fb7c6cd321b66a5811f /src/CMakeLists.txt
init
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 00000000..188cd77b
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 3.5)
+
+SET(lib_name hos_client_cpp)
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared -fPIC -std=c++11")
+SET(CMAKE_BUILD_TYPE Debug)
+
+link_directories(/usr/local/lib64)
+set(CMKAE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared -fPIC")
+add_library(${lib_name}_shared SHARED hos_client.cpp)
+target_link_libraries(${lib_name}_shared libaws-cpp-sdk-s3.so libaws-cpp-sdk-core.so)
+set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name})
+
+install(TARGETS ${lib_name}_shared LIBRARY DESTINATION /opt/MESA/lib)
+
+#install(TARGETS ${lib_name}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARIES)