Also try to compile C++ version of test

This commit is contained in:
Torfinn Berset 2019-01-31 14:19:48 +01:00
parent ba0f2fd14d
commit 7468e2ec12
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/*.o
/test.elf
/test.map
test_package/build

2
test.cpp Normal file
View File

@ -0,0 +1,2 @@
#include "aes.hpp"
#include "test.c"

View File

@ -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})