CMakeLists.txt 1.96 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
)
#
# 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()
   QT5_WRAP_CPP(MOC_FILES
      ${HEADERS}
   )
   #
   # Process qt resource files
   #QT5_ADD_RESOURCES(RESOURCE_RESULT
   #   ${RESOURCE_FILES}
   #)
ENDIF()
# C/C++ source
SET(SOURCES
   tabwidget.cc
52
   tableview.cc
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
)

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

TRIBITS_ADD_LIBRARY(
  radixwidgets
  SOURCES ${SOURCES} ${MOC_FILES} ${RESOURCE_RESULT}
)

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
##---------------------------------------------------------------------------##