# Targest
add_executable(find_all_pp find_all_pp.cpp)
- add_executable(memorytest memorytest.cpp)
# Linkage
target_link_libraries(find_all_pp ftdi_cpp)
- target_link_libraries(memorytest ftdi_cpp)
endif()
if HAVE_LIBFTDIPP
-examples_libftdipp = find_all_pp \
- memorytest
+examples_libftdipp = find_all_pp
else
examples_libftdipp =
endif
if HAVE_LIBFTDIPP
find_all_pp_SOURCES = find_all_pp.cpp
find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
-memorytest_SOURCES = memorytest.cpp
-memorytest_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
endif
+++ /dev/null
-/* cpp-simple.cpp
-
- Simple libftdi-cpp usage
-
- This program is distributed under the GPL, version 2
-*/
-
-#include "ftdi.hpp"
-#include <iostream>
-using namespace Ftdi;
-
-int main(int argc, char **argv)
-{
- std::cerr << "Creating ct context" << std::endl;
- Context ct;
- {
- std::cerr << "Copying ct2 context" << std::endl;
- Context ct2 = ct;
- }
-
- std::cerr << "Copying ct3 context" << std::endl;
- Context ct3(ct);
-
- std::cerr << "Result: " << ct.vendor() << std::endl;
-
- return 0;
-}
-
rm -f $RPM_BUILD_ROOT/usr/bin/bitbang_cbus
rm -f $RPM_BUILD_ROOT/usr/bin/find_all
rm -f $RPM_BUILD_ROOT/usr/bin/find_all_pp
-rm -f $RPM_BUILD_ROOT/usr/bin/memorytest
%clean
rm -fr $RPM_BUILD_ROOT