Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMakeLists.txt is now quite messy, but at least it works. Will ned to…
… figure out one better way to deal with it... git-svn-id: svn+ssh://orchestra.med.harvard.edu/svn/megason/Code/GoFigure2@1541 ef826fda-c0ae-4237-af8e-f8dcbcf7929c
- Loading branch information
Arnaud Gelas
committed
Sep 29, 2009
1 parent
74399d3
commit 9629666
Showing
11 changed files
with
161 additions
and
112 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 |
---|---|---|
@@ -1,9 +1,3 @@ | ||
ADD_SUBDIRECTORY( lib ) | ||
ADD_SUBDIRECTORY( src ) | ||
ADD_SUBDIRECTORY( Interfaces ) | ||
|
||
SET( QGoGUI_SRC | ||
${QGoGUI_INTERFACES_SRC} | ||
${QGoGUI_SRC} | ||
|
||
|
||
ADD_SUBDIRECTORY( Interfaces ) |
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,2 +1,2 @@ | ||
FILE( GLOB QGoGUI_INTERFACES_SRC *.cxx ) | ||
# FILE( GLOB QGoGUIINTERFACES_SRC *.cxx ) | ||
|
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,43 +1,42 @@ | ||
SET( QGoGUISRC_CXX | ||
QGoMainWindow.cxx | ||
QGoTabElementBase.cxx | ||
QGoPluginManager.cxx | ||
QGoTabImageView2D.cxx | ||
QGoTabImageView3D.cxx | ||
) | ||
|
||
SET( QGoGUISRC_HDRS | ||
QGoMainWindow.h | ||
QGoTabElementBase.h | ||
QGoTabImageView3D.h | ||
QGoPluginManager.h | ||
QGoTabImageView2D.h | ||
QGoTabImageViewElementBase.h | ||
) | ||
|
||
SET( QGoMainWindow_UI | ||
go.ui | ||
) | ||
|
||
QT4_WRAP_UI( QGoMainWindow_UI_H ${QGoMainWindow_UI} ) | ||
|
||
QT4_WRAP_CPP( QGoGUISRC_MOC ${QGoGUISRC_HDRS} ) | ||
|
||
SET_SOURCE_FILES_PROPERTIES( ${QGoGUISRC_SRC} PROPERTIES | ||
OBJECT_DEPENDS "${QGoMainWindow_UI_H}" | ||
) | ||
|
||
SET_SOURCE_FILES_PROPERTIES( ${QGoGUISRC_MOC} PROPERTIES | ||
OBJECT_DEPENDS "${QGoMainWindow_UI_H}" | ||
) | ||
|
||
QT4_ADD_RESOURCES( QGoMainWindow_QRC | ||
${GOFIGURE2_SOURCE_DIR}/Code/GUI/src/resources/axes.qrc | ||
) | ||
|
||
SET( QGoGUI_SRC | ||
${QGoGUISRC_CXX} | ||
${QGoMainWindow_QRC} | ||
${QGoGUISRC_MOC} | ||
) | ||
|
||
# SET( QGoGUISRC_CXX | ||
# QGoMainWindow.cxx | ||
# QGoTabElementBase.cxx | ||
# QGoPluginManager.cxx | ||
# QGoTabImageView2D.cxx | ||
# QGoTabImageView3D.cxx | ||
# ) | ||
# | ||
# SET( QGoGUISRC_HDRS | ||
# QGoMainWindow.h | ||
# QGoTabElementBase.h | ||
# QGoTabImageView3D.h | ||
# QGoPluginManager.h | ||
# QGoTabImageView2D.h | ||
# QGoTabImageViewElementBase.h | ||
# ) | ||
# | ||
# SET( QGoMainWindow_UI | ||
# go.ui | ||
# ) | ||
# | ||
# QT4_WRAP_UI( QGoMainWindow_UI_H ${QGoMainWindow_UI} ) | ||
# | ||
# QT4_WRAP_CPP( QGoGUISRC_MOC ${QGoGUISRC_HDRS} ) | ||
# | ||
# SET_SOURCE_FILES_PROPERTIES( ${QGoGUISRC_CXX} PROPERTIES | ||
# OBJECT_DEPENDS "${QGoMainWindow_UI_H}" | ||
# ) | ||
# | ||
# SET_SOURCE_FILES_PROPERTIES( ${QGoGUISRC_MOC} PROPERTIES | ||
# OBJECT_DEPENDS "${QGoMainWindow_UI_H}" | ||
# ) | ||
# | ||
# QT4_ADD_RESOURCES( QGoMainWindow_QRC | ||
# ${GOFIGURE2_SOURCE_DIR}/Code/GUI/src/resources/axes.qrc | ||
# ) | ||
# | ||
# SET( QGoGUISRC_SRC | ||
# ${QGoGUISRC_CXX} | ||
# ${QGoMainWindow_QRC} | ||
# ${QGoGUISRC_MOC} | ||
# ) |
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,31 +1,31 @@ | ||
SET( QGOGUILIB_EXAMPLE_SRC | ||
qgoimageview2d | ||
qgoimageview3d | ||
qgolutdialog.cxx | ||
qgolutdialog | ||
) | ||
|
||
FOREACH( var ${QGOGUILIB_EXAMPLE_SRC} ) | ||
|
||
ADD_EXECUTABLE( ${var} ${var} ) | ||
TARGET_LINK_LIBRARIES( ${var} | ||
QGoImageView | ||
QGoGui | ||
) | ||
|
||
ENDFOREACH( var ${QGOGUILIB_EXAMPLE_SRC} ) | ||
|
||
ADD_TEST( qgoimageview2dTest | ||
${EXECUTABLE_OUTPUT_PATH}/qgoimageview2d | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qgoimageview2d | ||
${TESTING_DATA_PATH}/Circle.png | ||
1 | ||
) | ||
|
||
ADD_TEST( qgoimageview3dTest | ||
${EXECUTABLE_OUTPUT_PATH}/qgoimageview3d | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qgoimageview3d | ||
${TESTING_DATA_PATH}/Circle3D.mhd | ||
1 | ||
) | ||
|
||
ADD_TEST( qgolutdialogTest | ||
${EXCUTABLE_OUTPUT_PATH}/qgolutdialog | ||
1 | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qgolutdialog | ||
1 | ||
) |
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,30 +1,53 @@ | ||
ADD_SUBDIRECTORY( lib ) | ||
|
||
SET( QGoLIB_EXAMPLES_SRC | ||
qgolutdialog | ||
qgotabelementbase | ||
qgotabimageviewelementbase | ||
qgotabimageview2d | ||
) | ||
|
||
INCLUDE_DIRECTORIES( ${GOFIGURE2_BINARY_DIR}/Examples/GUI/src/ ) | ||
|
||
QT4_WRAP_UI( QGoMainWindow_UI_H ${QGoMainWindow_UI} ) | ||
|
||
QT4_WRAP_CPP( QGoGUISRC_MOC ${QGoGUISRC_HDRS} ) | ||
|
||
SET_SOURCE_FILES_PROPERTIES( ${QGoGUISRC_CXX} PROPERTIES | ||
OBJECT_DEPENDS "${QGoMainWindow_UI_H}" | ||
) | ||
|
||
SET_SOURCE_FILES_PROPERTIES( ${QGoGUISRC_MOC} PROPERTIES | ||
OBJECT_DEPENDS "${QGoMainWindow_UI_H}" | ||
) | ||
|
||
QT4_ADD_RESOURCES( QGoMainWindow_QRC | ||
${GOFIGURE2_SOURCE_DIR}/Code/GUI/src/resources/axes.qrc | ||
) | ||
|
||
FOREACH( var ${QGoLIB_EXAMPLES_SRC} ) | ||
|
||
ADD_EXECUTABLE( ${var} ${var}.cxx ) | ||
# MESSAGE( SEND_ERROR ${QGoGUI_SRC} ) | ||
ADD_EXECUTABLE( ${var} | ||
${var}.cxx | ||
${QGoGUI_SRC} | ||
${QGoGUISRC_MOC} | ||
${QGoMainWindow_QRC} | ||
) | ||
TARGET_LINK_LIBRARIES( ${var} | ||
QGoLib | ||
QGoGui | ||
QGoIO | ||
ITKBasicFilters | ||
ITKNumerics | ||
ITKCommon | ||
ITKIO | ||
itkQt | ||
) | ||
|
||
ENDFOREACH( var ${QGoLIB_EXAMPLES_SRC} ) | ||
|
||
ADD_TEST( qgotabelementbaseTest | ||
${EXECUTABLE_OUTPUT_PATH}/qgotabelementbase | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qgotabelementbase | ||
) | ||
|
||
ADD_TEST( qgotabimageviewelementbaseTest | ||
${EXECUTABLE_OUTPUT_PATH}/qgotabimageviewelementbase | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qgotabimageviewelementbase | ||
) | ||
|
||
ADD_TEST( qgolutdialogtest | ||
${EXECUTABLE_OUTPUT_PATH}/qgolutdialog | ||
1 | ||
) |
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