Added multi files that includes msgpack.hpp linking test.

It detects a lack of inline keyword in a function definition.
This commit is contained in:
Takatoshi Kondo 2015-07-06 08:45:33 +09:00
parent 2216fda5ce
commit ab438ac9b9
4 changed files with 13 additions and 0 deletions

View File

@ -73,3 +73,9 @@ FOREACH (source_file ${check_PROGRAMS})
ENDIF ()
ENDIF ()
ENDFOREACH ()
ADD_EXECUTABLE (
multi_file
multi_file1.cpp multi_file2.cpp
)
ADD_TEST (multi_file multi_file)

View File

@ -23,6 +23,7 @@ check_PROGRAMS = \
msgpack_stream \
msgpack_vref \
msgpack_cpp11 \
multi_file \
reference_cpp11 \
reference \
limit \
@ -88,6 +89,8 @@ raw_SOURCES = raw.cpp
iterator_cpp11_SOURCES = iterator_cpp11.cpp
multi_file_SOURCES = multi_file1.cpp multi_file2.cpp
boost_fusion_SOURCES = boost_fusion.cpp
boost_optional_SOURCES = boost_optional.cpp

1
test/multi_file1.cpp Normal file
View File

@ -0,0 +1 @@
#include <msgpack.hpp>

3
test/multi_file2.cpp Normal file
View File

@ -0,0 +1,3 @@
#include <msgpack.hpp>
int main() {}