Aug 26, 2011

[CMake] Write our own module


Create a folder named cmake/Modules/ under your project root, and in the root CMakeLists.txt, include the following code:
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

Reference:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.