File tree Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Expand file tree Collapse file tree 3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ set(KITTests_SRCS
35
35
ctkLoggerTest1.cpp
36
36
ctkModelTesterTest1.cpp
37
37
ctkModelTesterTest2.cpp
38
- ctkUtf8Test1.cpp
39
38
ctkUtilsCopyDirRecursivelyTest1.cpp
40
39
ctkUtilsQtHandleToStringTest1.cpp
41
40
ctkUtilsTest.cpp
@@ -52,7 +51,11 @@ set(KITTests_SRCS
52
51
ctkWorkflowTest2.cpp
53
52
ctkWorkflowTest3.cpp
54
53
)
55
-
54
+ if (CTK_QT_VERSION VERSION_GREATER "4" )
55
+ list (APPEND KITTests_SRCS
56
+ ctkUtf8Test1.cpp
57
+ )
58
+ endif ()
56
59
if (HAVE_BFD )
57
60
list (APPEND KITTests_SRCS
58
61
ctkBinaryFileDescriptorTest1.cpp
Original file line number Diff line number Diff line change
1
+ /*=========================================================================
2
+
3
+ Library: CTK
4
+
5
+ Copyright (c) Kitware Inc.
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0.txt
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ =========================================================================*/
20
+
21
+ #ifndef __ctkCompatibility_p_h
22
+ #define __ctkCompatibility_p_h
23
+
24
+ //
25
+ // This file is not part of the CTK API. It exists purely as an
26
+ // implementation detail. This header file may change from version to
27
+ // version without notice, or even be removed.
28
+ //
29
+ // We mean it.
30
+ //
31
+
32
+ #include <QtGlobal>
33
+
34
+ #if (QT_VERSION < QT_VERSION_CHECK (5 , 4 , 0 ))
35
+ #define qUtf8Printable (string ) QString(string).toUtf8().constData()
36
+ #endif
37
+
38
+ #endif
Original file line number Diff line number Diff line change 8
8
#ifndef __ @MY_EXPORT_HEADER_PREFIX @Export_h
9
9
#define __ @MY_EXPORT_HEADER_PREFIX@Export_h
10
10
11
+ #include "ctkCompatibility_p.h"
11
12
#include "ctkCompilerDetections_p.h"
12
13
13
14
#include <QtGlobal>
You can’t perform that action at this time.
0 commit comments