diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 26eb3c5f19..b01a043964 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -344,6 +344,25 @@ add_custom_target(mnist COMMENT "Executing ${src_executable_mnistsp}" VERBATIM) + +######################################################### +## ASCII Example +# +set(src_executable_ascii ascii) +add_executable(${src_executable_ascii} "examples/ascii.cpp") +target_link_libraries(${src_executable_ascii} ${core_library}) +target_compile_options(${src_executable_ascii} PUBLIC ${INTERNAL_CXX_FLAGS}) +target_compile_definitions(${src_executable_ascii} PRIVATE ${COMMON_COMPILER_DEFINITIONS}) +target_include_directories(${src_executable_ascii} PRIVATE + ${CORE_LIB_INCLUDES} + ${EXTERNAL_INCLUDES} + ) +# add_custom_target(ascii +# COMMAND ${src_executable_ascii} +# DEPENDS ${src_executable_ascii} +# COMMENT "Executing ${src_executable_ascii}" +# VERBATIM) + ################################################## # # Install targets into CMAKE_INSTALL_PREFIX @@ -384,6 +403,12 @@ install(TARGETS LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) +install(TARGETS + ${src_executable_ascii} + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) + # # `make package` results in diff --git a/src/examples/ascii.cpp b/src/examples/ascii.cpp new file mode 100644 index 0000000000..355f2fdb90 --- /dev/null +++ b/src/examples/ascii.cpp @@ -0,0 +1,26 @@ + +#include +#include +#include +#include + +using namespace std; + + +int main() { + cout << "ASCII" << endl; + + auto dataFilename = "./ascii.cpp"; + ifstream dataFile( dataFilename ); + string str((istreambuf_iterator(dataFile)), istreambuf_iterator()); + + // Make model + + // Run model + + // Measure online stability + + // Measure inter/intra catagory overlap + + // Measure whole word classification accuracy +}