Jump to content

Example c++ project with cmake


aiaf
 Share

Recommended Posts

Just started with Leadwerks.Heres a way to build a project with 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:

CMakeLists.txt

 

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.

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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.

 Share

×
×
  • Create New...