summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorfinn Berset <torfinn@bloom-life.com>2019-01-31 14:19:48 +0100
committerTorfinn Berset <torfinn@bloom-life.com>2019-01-31 14:19:48 +0100
commit7468e2ec1240b424ee604cf980b9bca885c62acd (patch)
tree396788f467eca3166ba444db294812d7a76ec5c7
parentRemove Package author, and add Unlicense (diff)
downloadtiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.tar
tiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.tar.gz
tiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.tar.bz2
tiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.tar.lz
tiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.tar.xz
tiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.tar.zst
tiny-AES-c-7468e2ec1240b424ee604cf980b9bca885c62acd.zip
-rw-r--r--.gitignore1
-rw-r--r--test.cpp2
-rw-r--r--test_package/CMakeLists.txt5
3 files changed, 7 insertions, 1 deletions
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