[CMake] Formatting CMakeLists

Jason T. Slack-Moehrle slackmoehrle at gmail.com
Thu Aug 23 11:39:28 EDT 2012


A few questions on formatting the CMakeLists file.

Is there sort of a "template" that everyone uses to ensure not
overwriting options, etc?

Second, when using commands like:

SET( CORE_SOURCE_FILES "main.cpp" )

can I break lines like:

SET( CORE_SOURCE_FILES "main.cpp"
"file1.cpp"
"file2.cpp"
)

and do I have to use the quotes ("") around the source file names?

-Jason


More information about the CMake mailing list