File: CMakeLists.txt

package info (click to toggle)
stellarium 24.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 911,396 kB
  • sloc: ansic: 317,377; cpp: 204,602; xml: 48,590; javascript: 26,348; python: 1,254; perl: 1,108; sh: 207; makefile: 190; pascal: 169
file content (46 lines) | stat: -rw-r--r-- 1,582 bytes parent folder | download | duplicates (2)
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
INCLUDE_DIRECTORIES(
     .
     gui
     ${CMAKE_BINARY_DIR}/plugins/MeteorShowers/src
     ${CMAKE_BINARY_DIR}/plugins/MeteorShowers/src/gui
)

LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/src)

SET(MeteorShowers_SRCS
     MeteorShower.hpp
     MeteorShower.cpp
     MeteorShowers.hpp
     MeteorShowers.cpp
     MeteorShowersMgr.hpp
     MeteorShowersMgr.cpp
     MeteorObj.hpp
     MeteorObj.cpp
     gui/MSConfigDialog.hpp
     gui/MSConfigDialog.cpp
     gui/MSSearchDialog.hpp
     gui/MSSearchDialog.cpp
     translations.h
)

SET(MeteorShowersDialog_UIS
     gui/MSConfigDialog.ui
     gui/MSSearchDialog.ui
)

SET(MeteorShowers_RES ../resources/MeteorShower.qrc)
IF (${QT_VERSION_MAJOR} EQUAL "5")
     QT5_WRAP_UI(MeteorShowersDialog_UIS_H ${MeteorShowersDialog_UIS})
     QT5_ADD_RESOURCES(MeteorShowers_RES_CXX ${MeteorShowers_RES})
ELSE()
     QT_WRAP_UI(MeteorShowersDialog_UIS_H ${MeteorShowersDialog_UIS})
     QT_ADD_RESOURCES(MeteorShowers_RES_CXX ${MeteorShowers_RES})
ENDIF()

ADD_LIBRARY(MeteorShowers-static STATIC ${MeteorShowers_SRCS} ${MeteorShowers_MOC_SRCS} ${MeteorShowers_RES_CXX} ${MeteorShowersDialog_UIS_H})
TARGET_LINK_LIBRARIES(MeteorShowers-static Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Widgets)
SET_TARGET_PROPERTIES(MeteorShowers-static PROPERTIES OUTPUT_NAME "MeteorShowers")
SET_TARGET_PROPERTIES(MeteorShowers-static PROPERTIES COMPILE_FLAGS "-DQT_STATICPLUGIN")
ADD_DEPENDENCIES(AllStaticPlugins MeteorShowers-static)

SET_TARGET_PROPERTIES(MeteorShowers-static PROPERTIES FOLDER "plugins/MeteorShowers")