-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
50 lines (38 loc) · 1.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 2.8)
project(BlurBetween)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(SOURCE_FILES
src/BlurBetweenCmd.h
src/BlurBetweenCmd.cpp
src/Tweener.h
src/Tweener.cpp
src/BlurBetweenUI.h
src/BlurBetweenUI.cpp
src/pluginMain.cpp
src/BlurBetween.ui
)
# Sorry, this is hardcoded
set(CMAKE_MODULE_PATH /run/media/miller/BAGHEERA/cadaver/CMAKE)
# Maya
find_package(Maya REQUIRED)
include_directories(${MAYA_INCLUDE_DIR})
link_directories(${MAYA_LIBRARY_DIR})
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
# Qt
set(QT_DIR ${MAYA_LOCATION}/bin)
set(QT_CONF_PATH ${QT_DIR}/qt.conf)
set(QT_QMAKE_EXECUTABLE ${QT_DIR}/qmake)
set(QT_MOC_EXECUTABLE ${QT_DIR}/moc)
set(QT_INCLUDE_DIR ${MAYA_INCLUDE_DIR}/qt-4.8.6-include)
set(QT_VERSION_MAJOR 4)
set(QT_VERSION_MINOR 8)
set(QT_VERSION_PATCH 6)
find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDE_DIR})
#MESSAGE(WARNING ${QT_QMAKE_EXECUTABLE})
# Plugin
target_link_libraries(${PROJECT_NAME} ${MAYA_LIBRARIES})
MAYA_PLUGIN(${PROJECT_NAME})