CMakeLists.txt 2.36 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##---------------------------------------------------------------------------##
## radixwidgets/CMakeLists.txt
## Jordan P. Lefebvre
## Wednesday June 8 9:11:40 2016
##---------------------------------------------------------------------------##
## CMAKE for radixwidgets
##---------------------------------------------------------------------------##


TRIBITS_SUBPACKAGE(widgets)


##---------------------------------------------------------------------------##
## PACKAGE CONFIGURE FILE
##---------------------------------------------------------------------------##


##---------------------------------------------------------------------------##
## HEADER AND SOURCE FILES
##---------------------------------------------------------------------------##

# C/C++ headers
SET(HEADERS
   tabwidget.hh
25
   tableview.hh
26
27
28
29
30
)
# C/C++ source
SET(SOURCES
   tabwidget.cc
   tableview.cc
31
32
33
34
35
36
37
38
39
40
41
42
43
44
)
#
# Moc the header files
#
IF(USE_QT4)
   QT4_WRAP_CPP(MOC_FILES
      ${HEADERS}
   )
   #
   # Process qt resource files
   #QT4_ADD_RESOURCES(RESOURCE_RESULT
   #   ${RESOURCE_FILES}
   #)
ELSE()
45
46
   SET(HEADERS
       ${HEADERS}
47
       numberpadwidget.hh
48
       navigationactionmanager.hh
49
       navigationmodel.hh
50
51
       navigationwidget.hh
   )
52
53
   SET(SOURCES
       ${SOURCES}
54
       numberpadwidget.cc
55
       navigationactionmanager.cc
56
       navigationitem.cc
57
       navigationmodel.cc
58
59
       navigationwidget.cc
   )
60
61
62
   QT5_WRAP_CPP(MOC_FILES
      ${HEADERS}
   )
63
64
65
   SET(HEADERS ${HEADERS}
      navigationitem.hh
   )
66
67
68
69
70
71
72
73
74
75
76
77
78
79
   #
   # Process qt resource files
   #QT5_ADD_RESOURCES(RESOURCE_RESULT
   #   ${RESOURCE_FILES}
   #)
ENDIF()

##---------------------------------------------------------------------------##
## PACKAGE TARGETS AND INSTALL
##---------------------------------------------------------------------------##

TRIBITS_ADD_LIBRARY(
  radixwidgets
  SOURCES ${SOURCES} ${MOC_FILES} ${RESOURCE_RESULT}
80
  NOINSTALLHEADERS ${HEADERS}
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
)

INSTALL(FILES ${HEADERS}
  DESTINATION include/radixwidgets)

#
# Add test directory for this package
#
#TRIBITS_ADD_TEST_DIRECTORIES(tests)
#
# Add example directory for this package
#
TRIBITS_ADD_EXAMPLE_DIRECTORIES(examples)


TRIBITS_SUBPACKAGE_POSTPROCESS()

##---------------------------------------------------------------------------##
##                   end of radixwidgets/CMakeLists.txt
##---------------------------------------------------------------------------##