-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (34 loc) · 1.26 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
file(GLOB SOURCES
include/*.h
src/*.cpp
src/gui/*.cpp
src/gui/circuitwidget/*.cpp
src/gui/circuitwidget/components/*.cpp
src/gui/circuitwidget/components/active/*.cpp
src/gui/circuitwidget/components/logic/*.cpp
src/gui/circuitwidget/components/mcu/*.cpp
src/gui/circuitwidget/components/meters/*.cpp
src/gui/circuitwidget/components/other/*.cpp
src/gui/circuitwidget/components/outputs/*.cpp
src/gui/circuitwidget/components/passive/*.cpp
src/gui/circuitwidget/components/sources/*.cpp
src/gui/circuitwidget/components/switches/*.cpp
src/simulator/*.cpp
src/simulator/elements/*.cpp
src/simulator/elements/active/*.cpp
src/simulator/elements/logic/*.cpp
src/simulator/elements/outputs/*.cpp
src/simulator/elements/passive/*.cpp
src/application.qrc
)
add_library(simulide SHARED ${SOURCES})
target_include_directories(simulide PUBLIC include)
set_target_properties( simulide
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/build"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/build"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/build"
PREFIX "lib"
DEBUG_POSTFIX "_d"
)
target_link_libraries(simulide Qt6::Core Qt6::Xml Qt6::Widgets Qt6::Concurrent)