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

CMake find module for ctemplate #91

Open
GoogleCodeExporter opened this issue Mar 12, 2015 · 7 comments
Open

CMake find module for ctemplate #91

GoogleCodeExporter opened this issue Mar 12, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

A CMake module that allows the usage of find_package in a CMakeLists.txt

Example:
find_package(Ctemplate)

This could be added to a contrib folder.

Original issue reported on code.google.com by [email protected] on 4 Jun 2012 at 9:02

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks. Looks very complex though. 

> Macro that wraps templates int varnames.h

What does this mean / do?

Original comment by olafvdspek on 11 Jun 2012 at 2:58

@GoogleCodeExporter
Copy link
Author

Sorry for the late response.

Some of the code is borrowed from the FindQt4.cmake module. Most of the 
complexity (I assume you refer to the CTEMPLATE_MAKE_OUTPUT_file macro) is 
needed to make it work on windows too.

The macro: CTEMPLATE_VARNAMES(CT_HEADER ${CT_FILES})

Basically takes all the template files defined in CT_FILES and creates the 
corrensponding header files. The name of this header files are then saved in 
the variable CT_HEADERS. Internally the macros simply calls make_tpl_varnames_h 
for every  template file.

Would you suggest to better document this function in the code?

Original comment by [email protected] on 14 Jun 2012 at 5:44

@GoogleCodeExporter
Copy link
Author

I guess that function is an implementation detail, so it shouldn't really 
matter. 

> Macro that wraps templates int varnames.h

Is "int" a typo here?

Original comment by olafvdspek on 18 Jun 2012 at 2:12

@GoogleCodeExporter
Copy link
Author

Sorry for my delayed response.

Yes int is a typo. It should say:
Macro that wraps templates into varnames.h

Original comment by [email protected] on 2 Aug 2012 at 7:20

@GoogleCodeExporter
Copy link
Author

What do you think? Can this be included in the source?

Original comment by [email protected] on 21 Nov 2012 at 10:05

@GoogleCodeExporter
Copy link
Author

I fixed the typo you mentioned above.

Original comment by [email protected] on 21 Nov 2012 at 10:10

Attachments:

@GoogleCodeExporter
Copy link
Author

Yes, I think this can be included in the next release.

Original comment by olafvdspek on 22 Nov 2012 at 5:50

Mitten-O pushed a commit to Mitten-O/ctemplate that referenced this issue Oct 19, 2015
This is the FindCtemplate.cmake [email protected] posted
in issue OlafvdSpek#91. I did not change it in any way.

I did use it in a project of mine and it worked well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant