-
Notifications
You must be signed in to change notification settings - Fork 19
/
CMakeLists.txt
152 lines (137 loc) · 4.03 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
project(QtFlow)
cmake_minimum_required(VERSION 3.2.0)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Core)
set_target_properties(Qt5::Core PROPERTIES MAP_IMPORTED_CONFIG_COVERAGE "DEBUG")
option(BUILD_FULL_EDA "Build the full EDA" ON)
option(BUILD_STAND_ALONE_BINARIES "Build standalone binaries for testint EDA modules" ON)
include(GNUInstallDirs)
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5OpenGL REQUIRED)
find_package(KF5TextEditor REQUIRED)
set (CMAKE_CXX_STANDARD 11)
set(QT5_LIBRARIES
Qt5::Widgets
Qt5::Core
Qt5::OpenGL
Qt5::Gui
KF5::TextEditor
)
if ("${LIB64}" STREQUAL "TRUE")
set(LIBSUFFIX 64)
else()
set(LIBSUFFIX "")
endif()
set(INSTALL_LIB_DIR lib${LIBSUFFIX} CACHE PATH "Installation directory for libraries")
mark_as_advanced(INSTALL_LIB_DIR)
if(BUILD_FULL_EDA)
find_package(PythonLibs REQUIRED)
#-----------------------------------------------------------------------------
# Find Python
find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
add_definitions(-DPYTHONQT_USE_RELEASE_PYTHON_FALLBACK)
#-----------------------------------------------------------------------------
# Library Name
# To maintain ABI compatibility, the Qt major version as well as the Python major and minor version are needed
string(SUBSTRING ${PYTHONLIBS_VERSION_STRING} 0 1 python_major)
string(SUBSTRING ${PYTHONLIBS_VERSION_STRING} 2 1 python_minor)
set(PythonQt Qt${QT_VERSION_MAJOR}Python${python_major}${python_minor} CACHE INTERNAL "")
add_subdirectory(PythonQt)
endif(BUILD_FULL_EDA)
set(CMAKE_AUTOMOC ON)
if(BUILD_FULL_EDA)
add_subdirectory(QtFlow)
endif(BUILD_FULL_EDA)
add_subdirectory(qeditor)
add_subdirectory(qlayout)
add_subdirectory(tech_reader)
add_subdirectory(def)
add_subdirectory(lef)
add_subdirectory(schematics)
add_subdirectory(schematics_reader)
add_subdirectory(qschematics)
add_subdirectory(magic)
add_subdirectory(magic3d)
add_subdirectory(contacts)
add_subdirectory(vcd)
add_subdirectory(vcd_reader)
#add_subdirectory(tech)
#add_subdirectory(blif)
add_subdirectory(cmap_reader)
add_subdirectory(gds2)
add_subdirectory(helpers)
add_subdirectory(symbol_reader)
add_subdirectory(symbols)
#add_subdirectory(coriolis)
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/qtflow)
install(FILES
tech/ls1u.toml
tech/ls1u.xml
tech/mos.cmap
tech/mos.dstyle
tech/process.xml
tech/scmos.par
tech/scmos.tech
DESTINATION
${CMAKE_INSTALL_DATADIR}/qtflow/
)
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/qtflow/osu018)
install(FILES
tech/osu018/SCN6M_SUBM.10.tech
tech/osu018/osu018.magicrc
tech/osu018/osu018.par
tech/osu018/osu018.prm
tech/osu018/osu018.sh
tech/osu018/osu018_stdcells.gds
tech/osu018/osu018_stdcells.lef
tech/osu018/osu018_stdcells.lib
tech/osu018/osu018_stdcells.slib
tech/osu018/osu018_stdcells.sp
tech/osu018/osu018_stdcells.v
tech/osu018/osu035_pads.gds2
DESTINATION
${CMAKE_INSTALL_DATADIR}/qtflow/osu018
)
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/qtflow/osu035)
install(FILES
tech/osu035/SCN4M_SUBM.20.tech
tech/osu035/osu035.magicrc
tech/osu035/osu035.par
tech/osu035/osu035.prm
tech/osu035/osu035.sh
tech/osu035/osu035_pads.gds2
tech/osu035/osu035_stdcells.gds2
tech/osu035/osu035_stdcells.lef
tech/osu035/osu035_stdcells.lib
tech/osu035/osu035_stdcells.slib
tech/osu035/osu035_stdcells.sp
tech/osu035/osu035_stdcells.v
DESTINATION
${CMAKE_INSTALL_DATADIR}/qtflow/osu035
)
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/qtflow/osu050)
install(FILES
tech/osu050/SCN3ME_SUBM.30.tech
tech/osu050/osu050.magicrc
tech/osu050/osu050.par
tech/osu050/osu050.prm
tech/osu050/osu050.sh
tech/osu050/osu050_stdcells.lef
tech/osu050/osu050_stdcells.sp
tech/osu050/osu05_stdcells.lib
tech/osu050/osu05_stdcells.v
DESTINATION
${CMAKE_INSTALL_DATADIR}/qtflow/osu050
)
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATADIR}/qtflow/sxlib)
install(FILES
tech/sxlib/sxlib.alliance.lib
tech/sxlib/sxlib.lef
tech/sxlib/sxlib.lib
tech/sxlib/sxlib.slib
DESTINATION
${CMAKE_INSTALL_DATADIR}/qtflow/sxlib
)