You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ec...@apache.org on 2018/02/08 19:45:09 UTC
[geode-native] branch develop updated: GEODE-4507: Add top level
CMake file
This is an automated email from the ASF dual-hosted git repository.
echobravo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new d5b1876 GEODE-4507: Add top level CMake file
d5b1876 is described below
commit d5b1876c31055d75feae549477be614f4ba6dd59
Author: Ernie Burghardt <eb...@pivotal.io>
AuthorDate: Thu Feb 8 11:40:25 2018 -0800
GEODE-4507: Add top level CMake file
---
.../{cpp/customserializable => }/CMakeLists.txt | 25 +++-----------------
.../cpp/{customserializable => }/CMakeLists.txt | 27 ++++------------------
examples/cpp/customserializable/CMakeLists.txt | 2 +-
3 files changed, 9 insertions(+), 45 deletions(-)
diff --git a/examples/cpp/customserializable/CMakeLists.txt b/examples/CMakeLists.txt
similarity index 62%
copy from examples/cpp/customserializable/CMakeLists.txt
copy to examples/CMakeLists.txt
index dcc9d2d..f7cb133 100644
--- a/examples/cpp/customserializable/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -12,26 +12,7 @@
# 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.
+cmake_minimum_required(VERSION 3.4)
+project(examples)
-cmake_minimum_required(VERSION 3.5)
-
-project(customserializer)
-
-set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../cmake)
-set(CMAKE_CXX_STANDARD 11)
-
-if(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
- add_compile_options(-m64)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m64")
-endif()
-
-find_package(geode-native REQUIRED)
-
-add_executable(${PROJECT_NAME}
- main.cpp
- Order.cpp)
-
-target_link_libraries(${PROJECT_NAME}
- PUBLIC
- apache.geode::cpp
-)
+add_subdirectory(cpp)
\ No newline at end of file
diff --git a/examples/cpp/customserializable/CMakeLists.txt b/examples/cpp/CMakeLists.txt
similarity index 62%
copy from examples/cpp/customserializable/CMakeLists.txt
copy to examples/cpp/CMakeLists.txt
index dcc9d2d..012ff1f 100644
--- a/examples/cpp/customserializable/CMakeLists.txt
+++ b/examples/cpp/CMakeLists.txt
@@ -12,26 +12,9 @@
# 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.
+cmake_minimum_required(VERSION 3.4)
+project(examples)
-cmake_minimum_required(VERSION 3.5)
-
-project(customserializer)
-
-set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../cmake)
-set(CMAKE_CXX_STANDARD 11)
-
-if(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
- add_compile_options(-m64)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m64")
-endif()
-
-find_package(geode-native REQUIRED)
-
-add_executable(${PROJECT_NAME}
- main.cpp
- Order.cpp)
-
-target_link_libraries(${PROJECT_NAME}
- PUBLIC
- apache.geode::cpp
-)
+add_subdirectory(customserializable)
+add_subdirectory(customserializer)
+add_subdirectory(put-get-remove)
\ No newline at end of file
diff --git a/examples/cpp/customserializable/CMakeLists.txt b/examples/cpp/customserializable/CMakeLists.txt
index dcc9d2d..9ca93a9 100644
--- a/examples/cpp/customserializable/CMakeLists.txt
+++ b/examples/cpp/customserializable/CMakeLists.txt
@@ -15,7 +15,7 @@
cmake_minimum_required(VERSION 3.5)
-project(customserializer)
+project(customserializable)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../cmake)
set(CMAKE_CXX_STANDARD 11)
--
To stop receiving notification emails like this one, please contact
echobravo@apache.org.