File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,7 @@ install(TARGETS PythonQt
360
360
install (FILES ${headers} DESTINATION ${PythonQt_INSTALL_INCLUDE_DIR} )
361
361
install (FILES ${headers_gui} DESTINATION ${PythonQt_INSTALL_INCLUDE_DIR} /gui)
362
362
363
+ add_subdirectory (extensions)
363
364
#-----------------------------------------------------------------------------
364
365
# Testing
365
366
Original file line number Diff line number Diff line change
1
+ option (PythonQt_Extensions "Build PythonQt extensions." OFF )
2
+
3
+ if (PythonQt_Extensions)
4
+ if (NOT PythonQt_Wrap_QtAll)
5
+ MESSAGE (FATAL_ERROR "Cannot build PythonQt_QtAll without PythonQt_Wrap_QtAll set to ON" )
6
+ endif (NOT PythonQt_Wrap_QtAll)
7
+ set (qtall_headers
8
+ PythonQt_QtAll/PythonQt_QtAll.h)
9
+
10
+ set (qtall_sources
11
+ PythonQt_QtAll/PythonQt_QtAll.cpp)
12
+
13
+ include_directories (generated_cpp${generated_cpp_suffix} )
14
+
15
+ add_library (PythonQt_QtAll SHARED ${qtall_sources} )
16
+ target_link_libraries (PythonQt_QtAll PythonQt)
17
+
18
+ install (TARGETS PythonQt_QtAll
19
+ RUNTIME DESTINATION ${PythonQt_INSTALL_RUNTIME_DIR}
20
+ LIBRARY DESTINATION ${PythonQt_INSTALL_LIBRARY_DIR}
21
+ ARCHIVE DESTINATION ${PythonQt_INSTALL_ARCHIVE_DIR} )
22
+ install (FILES ${qtall_headers} DESTINATION ${PythonQt_INSTALL_INCLUDE_DIR} )
23
+ endif ()
You can’t perform that action at this time.
0 commit comments