From 7468e2ec1240b424ee604cf980b9bca885c62acd Mon Sep 17 00:00:00 2001 From: Torfinn Berset Date: Thu, 31 Jan 2019 14:19:48 +0100 Subject: Also try to compile C++ version of test --- .gitignore | 1 + test.cpp | 2 ++ test_package/CMakeLists.txt | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test.cpp diff --git a/.gitignore b/.gitignore index 1f1148f..8a9761d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /*.o /test.elf /test.map +test_package/build diff --git a/test.cpp b/test.cpp new file mode 100644 index 0000000..b7c8304 --- /dev/null +++ b/test.cpp @@ -0,0 +1,2 @@ +#include "aes.hpp" +#include "test.c" diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt index 89cddf4..2e4b243 100644 --- a/test_package/CMakeLists.txt +++ b/test_package/CMakeLists.txt @@ -1,8 +1,11 @@ cmake_minimum_required(VERSION 2.8.12) -project(TinyAesPackageTest C) +project(TinyAesPackageTest C CXX) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup() add_executable(example ../test.c) +add_executable(example_cpp ../test.cpp) + target_link_libraries(example ${CONAN_LIBS}) +target_link_libraries(example_cpp ${CONAN_LIBS}) \ No newline at end of file -- cgit v1.2.3