Skip to content
forked from chadmv/cgcmake

CMake modules for common applications related to computer graphics

License

Notifications You must be signed in to change notification settings

michaeldaw/cgcmake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

cgcmake

CMake modules for common applications related to computer graphics

Maya CMakeLists.txt

cmake_minimum_required(VERSION 3.1)
project(sampleplugin)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/modules)

set(SOURCE_FILES "pluginMain.cpp"
    "sampleCmd.cpp" "sampleCmd.h"
)

find_package(Maya REQUIRED)

add_library(sampleplugin SHARED ${SOURCE_FILES})
target_link_libraries(sampleplugin PRIVATE Maya::Maya)
target_include_directories(sampleplugin PRIVATE Maya::Maya)
MAYA_PLUGIN(sampleplugin)

From Command Line

# CMake 3.x
cmake -G "Visual Studio 14 2015 Win64" -DMAYA_VERSION=2018 ../
cmake --build . --config Release

About

CMake modules for common applications related to computer graphics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 100.0%