Skip to content

Commit

Permalink
Also try to compile C++ version of test
Browse files Browse the repository at this point in the history
  • Loading branch information
torfinnberset committed Jan 31, 2019
1 parent ba0f2fd commit 7468e2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*.o
/test.elf
/test.map
test_package/build
2 changes: 2 additions & 0 deletions test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "aes.hpp"
#include "test.c"
5 changes: 4 additions & 1 deletion test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 7468e2e

Please sign in to comment.