forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·81 lines (70 loc) · 1.63 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
52
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
# Allow users to not build without the gui even if Qt is found
option(BUILD_GUI "Build the GUI" ON)
# If Qt is not installed there will not be cmake
# support for the package so this needs to be "quiet".
find_package(Qt5 QUIET COMPONENTS Core Widgets)
include("openroad")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if (Qt5_FOUND AND BUILD_GUI)
message(STATUS "GUI is enabled")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOUIC_SEARCH_PATHS ui)
set(GUI_WRAP ${CMAKE_CURRENT_BINARY_DIR}/gui_wrap.cc)
swig_lib(NAME gui
NAMESPACE gui
I_FILE src/gui.i
SCRIPTS src/gui.tcl
RUNTIME_HEADER tclSwig.h
)
set_property(SOURCE ${GUI_WRAP} PROPERTY SKIP_AUTOMOC ON)
target_sources(gui
PRIVATE
src/layoutViewer.cpp
src/mainWindow.cpp
src/scriptWidget.cpp
src/tclCmdInputWidget.cpp
src/tclCmdHighlighter.cpp
src/displayControls.cpp
src/gui.cpp
src/search.cpp
src/findDialog.cpp
src/inspector.cpp
src/dbDescriptors.cpp
src/highlightGroupDialog.cpp
src/selectHighlightWindow.cpp
src/staGui.cpp
src/timingWidget.cpp
src/drcWidget.cpp
src/ruler.cpp
src/heatMap.cpp
resources/resource.qrc
)
target_link_libraries(gui
PUBLIC
odb
PRIVATE
Qt5::Core
Qt5::Widgets
utl
Boost::boost
)
messages(
TARGET gui
)
else()
message(STATUS "GUI is not enabled")
add_library(gui src/stub.cpp)
target_link_libraries(gui
PUBLIC
odb
)
endif()
target_include_directories(gui
PUBLIC
include
PRIVATE
${OPENSTA_HOME}/include
${DBSTA_HOME}/include
)