Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiNEAT is not automatically installed #89

Open
DaanZ opened this issue Apr 28, 2020 · 3 comments
Open

MultiNEAT is not automatically installed #89

DaanZ opened this issue Apr 28, 2020 · 3 comments

Comments

@DaanZ
Copy link

DaanZ commented Apr 28, 2020

We should supply the revolve CMakeLists.txt with

add_subdirectory(thirdparty/MultiNEAT)

But this does not build MultiNEAT successfully.

CMake Error at build/thirdparty/MultiNEAT/MultiNEATConfig.cmake:21 (include):
  include could not find load file:
/home/daanz/revolve_workspace/revolve_battery/build/thirdparty/MultiNEAT/MultiNEATTargets.cmake
Call Stack (most recent call first):
  cpprevolve/revolve/brains/CMakeLists.txt:21 (find_package)

The MultiNEAT cmake file should create the MultiNEATTargets.cmake, but this is not the case.

@portaloffreedom
Copy link
Member

MultiNEAT is supposed to be installed system wise to make this work.
MultiNEATConfig.cmake is generated depending on your configuration.

This is the current situation, I understand that there is a better way to do this, without installing MultiNEAT and it would be preferrable, but I need more experience on cmake to understand how to do this properly.

@DaanZ
Copy link
Author

DaanZ commented Apr 29, 2020

I am going to read https://zhjwpku.com/assets/pdf/books/Managing.Projects.With.Gnu.Make.3Rd.Edition.pdf to possibly assist with this.

@portaloffreedom
Copy link
Member

Not really. Make is an old tool very manual and unpractical. What I used as a reference in modern cmake is this: https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants