Initial commit

This commit is contained in:
Ahrimdon
2024-02-15 15:46:47 -05:00
parent 977d6c0660
commit 1a7b94b15a
2498 changed files with 699139 additions and 11 deletions

View File

@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
project(cmake-addsubdirectory)
set(CMAKE_CXX_STANDARD 11)
add_subdirectory(rapidcsv)
add_executable(exprog2 src/exprog2.cpp)
target_link_libraries(exprog2 PUBLIC rapidcsv)
install(TARGETS exprog2 DESTINATION bin)
add_custom_target(uninstall
COMMAND "${CMAKE_COMMAND}" -E remove "${CMAKE_INSTALL_PREFIX}/bin/exprog2"
)

View File

@ -0,0 +1,11 @@
CMake Add Subdirectory Example Project
======================================
Build Steps
-----------
Commands to build the example project:
ln -s ../.. rapidcsv
mkdir -p build && cd build && cmake .. && make

View File

@ -0,0 +1,11 @@
#include <iostream>
#include <vector>
#include <rapidcsv.h>
int main()
{
rapidcsv::Document doc("../../colhdr.csv");
std::vector<float> col = doc.GetColumn<float>("Close");
std::cout << "Read " << col.size() << " values." << std::endl;
}