#cuberite

/

      • bearbin joined the channel
      • warmist_ joined the channel
      • LogicParrot joined the channel
      • LogicParrot
        How exactly do I add a new folder to the Cuberite source? I have added a new folder entry in src/CMakeLists.txt, and I have created a new CMakeLists.txt in the new folder. But apparently, this is not enough, and compilation fails at the link stage.
      • The failure is "Undefined reference", when referencing whatever's in the new folder.
      • sgtbigman
        hmm, what steps did you run so far?
      • LogicParrot
        I fixed it. For the record, 3 changes are required. 1. Create a new CMakeLists.txt in the new folder, it should have a "add_library" part, use the incrementalRedStoneSimulator folder as a reference template.
      • sgtbigman
        ah, yes, I see that line
      • LogicParrot
        2. in src/CMakeLists.txt, add the folder to the set(FOLDERS... part
      • 3. in src/CMakeLists.txt, add the "library" name you chose in step 1 to the "IF (NOT MSVC... " part. This is what I missed earlier.
      • LogicParrot has quit
      • RudyValencia joined the channel
      • RudyValencia has quit
      • RudyValencia joined the channel
      • RudyValencia joined the channel
      • RudyValencia has left the channel
      • RudyValencia joined the channel
      • RudyValencia has quit
      • RudyValencia joined the channel
      • RudyValencia has left the channel
      • bearbin has quit