]> Creatis software - cpMesh.git/blob - appli/InteractiveDeformableMeshSegmentation/CMakeLists.txt
First commit
[cpMesh.git] / appli / InteractiveDeformableMeshSegmentation / CMakeLists.txt
1 IF(BUILD_FINAL_APPLICATION)
2
3   ## ====================================================
4   ## = Source code, user interafaces and resources here =
5   ## ====================================================
6
7   SET(App_NAME       "InteractiveDeformableMeshSegmentation")
8   SET(App_SOURCE_DIR "${PROJECT_SOURCE_DIR}/appli/${App_NAME}")
9   SET(App_BINARY_DIR "${PROJECT_BINARY_DIR}/appli/${App_NAME}")
10
11   SET(
12     App_QT_SOURCES
13     MainWnd.cxx
14     )
15   SET(
16     App_SOURCES
17     main.cxx
18     VolumeActors.cxx
19     InteractorStyleImage.cxx
20     )
21   SET(
22     App_QT_HEADERS
23     MainWnd.h
24     )
25   SET(
26     App_HEADERS
27     VolumeActors.h
28     InteractorStyleImage.h
29     )
30   FILE(GLOB App_QT_UI  "${App_SOURCE_DIR}/*.ui")
31   FILE(GLOB App_QT_RES "${App_SOURCE_DIR}/*.qrc")
32
33   ## =====================
34   ## = Compilation rules =
35   ## =====================
36
37   INCLUDE_DIRECTORIES(
38     ${App_BINARY_DIR}
39     )
40
41   QT4_WRAP_UI(App_QT_UI_Headers ${App_QT_UI})
42   QT4_WRAP_CPP(App_QT_HEADERS_MOC_SOURCES ${App_QT_HEADERS})
43   QT4_ADD_RESOURCES(App_QT_RES_SOURCES ${App_QT_RES})
44
45   SET(GUI_TYPE "")
46   IF(WIN32)
47     SET(GUI_TYPE WIN32)
48   ENDIF(WIN32)
49   IF(APPLE)
50     SET(GUI_TYPE MACOSX_BUNDLE)
51   ENDIF(APPLE)
52
53   ADD_EXECUTABLE(
54     ${App_NAME}
55     ${GUI_TYPE}
56     ${App_QT_UI_Headers}
57     ${App_SOURCES}
58     ${App_QT_SOURCES}
59     ${App_QT_HEADERS_MOC_SOURCES}
60     ${App_QT_RES_SOURCES}
61     )
62   TARGET_LINK_LIBRARIES(
63     ${App_NAME}
64     cpm
65     ${QT_LIBRARIES}
66     ${ITK_LIBRARIES}
67     ${VTK_LIBRARIES}
68     )
69
70   CONFIGURE_FILE(
71     idms.plugins
72     ${PROJECT_BINARY_DIR}/idms.plugins
73     COPYONLY
74     )
75 ENDIF(BUILD_FINAL_APPLICATION)
76
77 ## eof - $RCSfile$