summaryrefslogtreecommitdiffstats
path: root/kalzium/src/CMakeLists.txt
blob: 5a91842b18755b6a1ff5dc8328563700b72ffb95 (plain)
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
add_subdirectory( icons       )
add_subdirectory( elementpics )
add_subdirectory( data        )
tde_conditional_add_subdirectory( WITH_OCAML_SOLVER solver )

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${CMAKE_SOURCE_DIR}/libtdeedu/tdeeduplot
  ${CMAKE_SOURCE_DIR}/libtdeedu/tdeeduui
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
  ${OCAML_LIBRARY_DIR}
)

if( WITH_OCAML_SOLVER )
  set( OCAML_LIBRARIES asmrun nums m ${CMAKE_DL_LIBS} )
  set( OCAML_SOLVER
    ${CMAKE_CURRENT_BINARY_DIR}/solver/modwrap.o
    ${CMAKE_CURRENT_BINARY_DIR}/solver/solver.o
  )
else( )
  add_custom_target( kalzium_solver COMMENT "Empty kalzium solver" )
endif( )


##### kalzium (executable)

tde_add_executable( kalzium AUTOMOC

  SOURCES
        prefs.kcfgc
        settings_colors.ui
        settings_misc.ui
        settings_units.ui
        plotsetupwidget.ui
        molcalcwidgetbase.ui
        timewidget.ui
        somwidget.ui
        spectrumview.ui
        eqresult.cpp
        eqchemview.cpp
        kalzium.cpp
        main.cpp
        periodictableview.cpp
        element.cpp
        detailinfodlg.cpp
        orbitswidget.cpp
        plotwidget.cpp
        elementdataviewer.cpp
        detailedgraphicaloverview.cpp
        molcalcwidget.cpp
        timewidget_impl.cpp
        somwidget_impl.cpp
        kalziumtip.cpp
        spectrum.cpp
        isotope.cpp
        kalziumdataobject.cpp
        spectrumwidget.cpp
        exporter.cpp
        spectrumviewimpl.cpp
        kalziumutils.cpp
        parser.cpp
        moleculeparser.cpp
        tempunit.cpp
  LINK
     tdecore-shared
     tdeui-shared
     tdeio-shared
     tdehtml-shared
     tdeeduplot-shared
     tdeeduui-shared
     ${OCAML_SOLVER}
     ${OCAML_LIBRARIES}

  DEPENDENCIES
     kalzium_solver

  DESTINATION ${BIN_INSTALL_DIR}
)


##### icons

tde_install_icons( )


##### other data

install(
    FILES kalziumui.rc
    DESTINATION ${DATA_INSTALL_DIR}/kalzium
)

tde_create_translated_desktop( kalzium.desktop )

install(
    FILES kalzium.kcfg
    DESTINATION ${KCFG_INSTALL_DIR}
)