IF(BUILD_FINAL_APPLICATION) ## ==================================================== ## = Source code, user interafaces and resources here = ## ==================================================== SET(App_NAME "InteractiveDeformableMeshSegmentation") SET(App_SOURCE_DIR "${PROJECT_SOURCE_DIR}/appli/${App_NAME}") SET(App_BINARY_DIR "${PROJECT_BINARY_DIR}/appli/${App_NAME}") SET( App_QT_SOURCES MainWnd.cxx MainWnd_LoadPlugins.cxx MainWnd_ExecutePlugins.cxx ) SET( App_SOURCES main.cxx ) SET( App_QT_HEADERS MainWnd.h ) SET( App_HEADERS ) FILE(GLOB App_QT_UI "${App_SOURCE_DIR}/*.ui") FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc") ## ===================== ## = Compilation rules = ## ===================== INCLUDE_DIRECTORIES( ${App_BINARY_DIR} ) QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI}) QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS}) QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES}) SET(GUI_TYPE "") IF(WIN32) SET(GUI_TYPE WIN32) ENDIF(WIN32) IF(APPLE) SET(GUI_TYPE MACOSX_BUNDLE) ENDIF(APPLE) ADD_EXECUTABLE( ${App_NAME} ${GUI_TYPE} ${App_QT_UI_Headers} ${App_SOURCES} ${App_QT_SOURCES} ${App_QT_HEADERS_MOC_SOURCES} ${App_QT_RES_SOURCES} ) TARGET_LINK_LIBRARIES( ${App_NAME} cpm ${cpPlugins_Interface_LIBRARIES} ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES} ) CONFIGURE_FILE( idms.plugins.in ${PROJECT_BINARY_DIR}/idms.plugins @ONLY ) CONFIGURE_FILE( idms.config ${PROJECT_BINARY_DIR}/idms.config @COPYONLY ) ENDIF(BUILD_FINAL_APPLICATION) ## eof - $RCSfile$