-
Notifications
You must be signed in to change notification settings - Fork 338
/
Copy pathCMakeLists.txt
55 lines (49 loc) · 1.67 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
51
52
53
54
55
find_package(PythonLibs 2.7 REQUIRED)
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(HEADERS src/PythonQt.h
src/PythonQtStdDecorators.h
src/PythonQtClassInfo.h
src/PythonQtImporter.h
src/PythonQtObjectPtr.h
src/PythonQtSlot.h
src/PythonQtStdOut.h
src/PythonQtMisc.h
src/PythonQtMethodInfo.h
src/PythonQtImportFileInterface.h
src/PythonQtConversion.h
src/PythonQtSignalReceiver.h
src/PythonQtWrapper.h
src/PythonQtMetaObjectWrapper.h
src/PythonQtCppWrapperFactory.h
src/PythonQtVariants.h
src/PythonQtVariantWrapper.h
src/wrapper/PythonQtWrappedVariants.h
src/gui/PythonQtScriptingConsole.h
src/PythonQtSystem.h)
SET(SOURCES
src/PythonQtStdDecorators.cpp
src/PythonQt.cpp
src/PythonQtClassInfo.cpp
src/PythonQtImporter.cpp
src/PythonQtObjectPtr.cpp
src/PythonQtStdOut.cpp
src/PythonQtSlot.cpp
src/PythonQtMisc.cpp
src/PythonQtMethodInfo.cpp
src/PythonQtConversion.cpp
src/PythonQtSignalReceiver.cpp
src/PythonQtVariants.cpp
src/PythonQtVariantWrapper.cpp
src/PythonQtWrapper.cpp
src/PythonQtMetaObjectWrapper.cpp
src/gui/PythonQtScriptingConsole.cpp)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_LIBRARY(PythonQt ${SOURCES} ${HEADERS})
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src)
TARGET_LINK_LIBRARIES(PythonQt ${PYTHON_LIBRARIES} ${QT_LIBRARIES})
MESSAGE(STATUS "PYTHON_LIBRARIES ${PYTHON_LIBRARIES}")
INSTALL(TARGETS PythonQt RUNTIME DESTINATION "bin" LIBRARY DESTINATION "lib"
ARCHIVE DESTINATION "lib" COMPONENT "elmergui")