User forums > Using Code::Blocks
how to design the template
realmeat:
I want to design a template for work
Have any document ?
thx a lot.
Michael:
Hello,
Did you try to search in the forum?
I am quite sure that you will find your answer after a small search :).
Best wishes,
Michael
realmeat:
This is FLTK template file code
Xml
------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE CodeBlocks_template_file>
<CodeBlocks_template_file>
<Template name="FLTK" title="FLTK Application" category="GUI" bitmap="fltk.png">
<Notice value="This template expects FLTK to be located at C:\fltk-1.1.6.
If this is not the case, you will have to update the relevant
custom variable accordingly.
To do this, click on "Project->Build options->Custom variables""
isWarning="1"/>
<FileSet name="s" title="Default">
<File source="fltk-main.cpp" destination="main.cpp"/>
</FileSet>
<Option name="FLTK Application">
<Project file="fltk.cbp"/>
</Option>
</Template>
</CodeBlocks_template_file>
-------------------------------------------------------------------------
In this template, i know how to do FileSet and Project Name
but how about the project linking to lib?
If I have a special lib,how shall I do?
Otherwise, I must set the linking before using the template
realmeat:
I find out the point.
In *.cbp
<Linker>
<Add library = "lib path"/>
</Linker>
but, I have more one question.
have any variables which define the path of codeblocks dir ?
Just like $(FLTK_DIR) ,$(#WX.lib) defined some path.
sethjackson:
Yes.
http://wiki.codeblocks.org/index.php?title=Builtin_variables
$(CODEBLOCKS) $(APP_PATH) $(APPPATH) $(APP-PATH)
Navigation
[0] Message Index
[#] Next page
Go to full version