Jump to content

aiaf's Blog

  • entries
    11
  • comments
    4
  • views
    6,697

Example c++ project with cmake


aiaf

2,031 views

 Share

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

  • Upvote 3
 Share

1 Comment


Recommended Comments

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...