From 4c2eea27c893d60d7e25dabe42759153661d7c70 Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Sun, 4 Apr 2021 13:22:19 +0200 Subject: [PATCH] Adding missing files --- example/Vector/0_simple/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 example/Vector/0_simple/CMakeLists.txt diff --git a/example/Vector/0_simple/CMakeLists.txt b/example/Vector/0_simple/CMakeLists.txt new file mode 100644 index 000000000..56ed35ad0 --- /dev/null +++ b/example/Vector/0_simple/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.8 FATAL_ERROR) +project(openfpm_pdata LANGUAGES C CXX) + +find_package(openfpm 3.2.0 REQUIRED) +find_package(Threads) + +if (openfpm_FOUND) + message("OpenFPM found") + + + add_executable(vect main.cpp) + get_property(OPENFPM_INCLUDES TARGET openfpm::binary_config PROPERTY INTERFACE_INCLUDE_DIRECTORIES) + get_property(OPENFPM_DEFINITION TARGET openfpm::binary_config PROPERTY INTERFACE_COMPILE_DEFINITIONS) + get_property(OPENFPM_LIBS TARGET openfpm::binary_config PROPERTY INTERFACE_LINK_LIBRARIES) + target_include_directories(vect PUBLIC ${OPENFPM_INCLUDES}) + target_compile_definitions(vect PUBLIC ${OPENFPM_DEFINITION}) + target_link_libraries(vect PUBLIC ${OPENFPM_LIBS}) +endif() + -- GitLab