Example c++ project with cmake
Just started with Leadwerks.Heres a way to build a c++ project using cmake on linux.
Start from an existing project (lets call it Proj):
Copy
~/.steam/steamapps/common/Leadwerks
into Source/Libs.
Now you have Proj/Source/Libs/Leadwerks (this directory contains all the header files and static libs needed).
Can use this Libs dir to add any other external libs you need.
Here is the CMakeLists.txt:
https://github.com/aiafrasinei/lep.git
Copy to the root of the project.
cmake . and make
Will work on windows also with some modifications.
~/Documents/Leadwerks/Projects/test/Projects/Linux/Proj check the codeblocks project (Proj.cbp, Proj.depend) if you need to add more to the CMakeLists.txt
Hope this helps
- 3
1 Comment
Recommended Comments