I would like to design a cmake FindOOXX module for Autodesk Maya with support of versioning, just like what FindQt4.cmake provides. ex,
find_package(Qt4 4.4.3)
include(${QT_USE_FILE})
add_executable(myexe main.cpp)
target_link_libraries(myexe ${QT_LIBRARIES})
Does anyone has a simple but complete cmake module sample like this?
In the CMake modules directory there is a file
readme.txtwhich contains useful information for CMake module writers. This is the relevant section from that file on how version numbers are passed to the module: