forked from commontk/CTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Todo: * Test with Qt4 * Make sure ctkMacroWrapPythonQt.cmake works correctly
- Loading branch information
Showing
103 changed files
with
789 additions
and
379 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
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
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
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 |
---|---|---|
@@ -1,21 +1,41 @@ | ||
|
||
# QT4_GENERATE_MOCS(inputfile1 [inputfile2 ...]) | ||
if (CTK_QT_VERSION VERSION_GREATER "4") | ||
# QT5_GENERATE_MOCS(inputfile1 [inputfile2 ...]) | ||
macro(QT5_GENERATE_MOCS) | ||
foreach(file ${ARGN}) | ||
set(moc_file moc_${file}) | ||
QT5_GENERATE_MOC(${file} ${moc_file}) | ||
|
||
macro(QT4_GENERATE_MOCS) | ||
foreach(file ${ARGN}) | ||
set(moc_file moc_${file}) | ||
QT4_GENERATE_MOC(${file} ${moc_file}) | ||
|
||
get_filename_component(source_name ${file} NAME_WE) | ||
get_filename_component(source_ext ${file} EXT) | ||
if(${source_ext} MATCHES "\\.[hH]") | ||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source_name}.cpp) | ||
set(source_ext .cpp) | ||
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source_name}.cxx) | ||
set(source_ext .cxx) | ||
get_filename_component(source_name ${file} NAME_WE) | ||
get_filename_component(source_ext ${file} EXT) | ||
if(${source_ext} MATCHES "\\.[hH]") | ||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source_name}.cpp) | ||
set(source_ext .cpp) | ||
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source_name}.cxx) | ||
set(source_ext .cxx) | ||
endif() | ||
endif() | ||
endif() | ||
set_property(SOURCE ${source_name}${source_ext} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${moc_file}) | ||
endforeach() | ||
set_property(SOURCE ${source_name}${source_ext} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${moc_file}) | ||
endforeach() | ||
endmacro() | ||
|
||
else() | ||
# QT4_GENERATE_MOCS(inputfile1 [inputfile2 ...]) | ||
macro(QT4_GENERATE_MOCS) | ||
foreach(file ${ARGN}) | ||
set(moc_file moc_${file}) | ||
QT4_GENERATE_MOC(${file} ${moc_file}) | ||
get_filename_component(source_name ${file} NAME_WE) | ||
get_filename_component(source_ext ${file} EXT) | ||
if(${source_ext} MATCHES "\\.[hH]") | ||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source_name}.cpp) | ||
set(source_ext .cpp) | ||
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source_name}.cxx) | ||
set(source_ext .cxx) | ||
endif() | ||
endif() | ||
set_property(SOURCE ${source_name}${source_ext} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${moc_file}) | ||
endforeach() | ||
endmacro() | ||
endif() | ||
|
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
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
Oops, something went wrong.