Skip to content

Using Spcppl Library

poikniok edited this page Nov 22, 2019 · 9 revisions

This page assumes that the steps on the Simplest Configuration Using Default Project wiki page have been completed. Following these next steps will allow Clion to automatically import from the spcppl library, and include the code in the output/main.cpp for submission.

With the example project now open:

  • Go the spcppl github page and download the zip file.
  • Move the spcppl folder that you have now downloaded under the jhelper-example-project directory.
  • Go to the CMakeLists.txt that is under the jhelper-example-project (NOT the one in the spcppl directory). The last line of it should be add_executable(test ${TASKS} ${HEADERS}). After the last line, at the very end of this file (this is important), add the following 4 lines
add_subdirectory(spcppl)  
target_link_libraries(testrunner spcppl)  
target_link_libraries(output spcppl)  
target_link_libraries(test spcppl)