hosseinmoein / DataFrame

C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
https://hosseinmoein.github.io/DataFrame/
BSD 3-Clause "New" or "Revised" License
2.54k stars 313 forks source link

C++ newbie question: How to compile the library with my own main.cpp? #98

Closed Asocius closed 4 years ago

Asocius commented 4 years ago

Hello there,

complete newbie at C++ and CMake here (coming from Python Pandas). How do I compile the library with my own main.cpp file? Do I have to add something like add_executable(${PROJECT_NAME} main.cpp) to the CMakeLists.txt file or something completely different? I have Visual Studio 2019 installed and clicked on Build->Install DataFrame and it all ran through without errors, also the built-in tests seem to work, but I don't know what the "next" step is.

Best regards Stephan

hosseinmoein commented 4 years ago

You can just follow/duplicate what is happening for dataframe_tester.cc in the cmake file.

Asocius commented 4 years ago

Thanks for the quick reply, now it works!