Skip to content

Commit 22b6ff2

Browse files
committed
Always compile tst_callgraphgenerator
It doesn't depend on the viewer to be available
1 parent f4a310c commit 22b6ff2

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

tests/modeltests/CMakeLists.txt

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,26 @@ set_target_properties(
4949
tst_disassemblyoutput PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${KDE_INSTALL_BINDIR}"
5050
)
5151

52-
if(KGraphViewerPart_FOUND)
53-
ecm_add_test(
54-
tst_callgraphgenerator.cpp
55-
../../src/parsers/perf/perfparser.cpp
56-
../../src/initiallystoppedprocess.cpp
57-
../../src/perfcontrolfifowrapper.cpp
58-
../../src/perfrecord.cpp
59-
../../src/callgraphgenerator.cpp
60-
../../src/errnoutil.cpp
61-
LINK_LIBRARIES
62-
Qt::Core
63-
Qt::Test
64-
KF${QT_MAJOR_VERSION}::KIOCore
65-
KF${QT_MAJOR_VERSION}::ThreadWeaver
66-
KF${QT_MAJOR_VERSION}::Archive
67-
KF${QT_MAJOR_VERSION}::WindowSystem
68-
models
69-
TEST_NAME
70-
tst_callgraphgenerator
71-
)
52+
ecm_add_test(
53+
tst_callgraphgenerator.cpp
54+
../../src/parsers/perf/perfparser.cpp
55+
../../src/initiallystoppedprocess.cpp
56+
../../src/perfcontrolfifowrapper.cpp
57+
../../src/perfrecord.cpp
58+
../../src/callgraphgenerator.cpp
59+
../../src/errnoutil.cpp
60+
LINK_LIBRARIES
61+
Qt::Core
62+
Qt::Test
63+
KF${QT_MAJOR_VERSION}::KIOCore
64+
KF${QT_MAJOR_VERSION}::ThreadWeaver
65+
KF${QT_MAJOR_VERSION}::Archive
66+
KF${QT_MAJOR_VERSION}::WindowSystem
67+
models
68+
TEST_NAME
69+
tst_callgraphgenerator
70+
)
7271

73-
set_target_properties(
74-
tst_callgraphgenerator PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${KDE_INSTALL_BINDIR}"
75-
)
76-
endif()
72+
set_target_properties(
73+
tst_callgraphgenerator PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${KDE_INSTALL_BINDIR}"
74+
)

0 commit comments

Comments
 (0)