-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to build and install extensions.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
option(PythonQt_Extensions "Build PythonQt extensions." OFF) | ||
|
||
if(PythonQt_Extensions) | ||
if(NOT PythonQt_Wrap_QtAll) | ||
MESSAGE(FATAL_ERROR "Cannot build PythonQt_QtAll without PythonQt_Wrap_QtAll set to ON") | ||
endif(NOT PythonQt_Wrap_QtAll) | ||
set(qtall_headers | ||
PythonQt_QtAll/PythonQt_QtAll.h) | ||
|
||
set(qtall_sources | ||
PythonQt_QtAll/PythonQt_QtAll.cpp) | ||
|
||
include_directories(generated_cpp${generated_cpp_suffix}) | ||
|
||
add_library(PythonQt_QtAll SHARED ${qtall_sources}) | ||
target_link_libraries(PythonQt_QtAll PythonQt) | ||
|
||
install(TARGETS PythonQt_QtAll | ||
RUNTIME DESTINATION ${PythonQt_INSTALL_RUNTIME_DIR} | ||
LIBRARY DESTINATION ${PythonQt_INSTALL_LIBRARY_DIR} | ||
ARCHIVE DESTINATION ${PythonQt_INSTALL_ARCHIVE_DIR}) | ||
install(FILES ${qtall_headers} DESTINATION ${PythonQt_INSTALL_INCLUDE_DIR}) | ||
endif() |