diff options
author | gregory guy <[email protected]> | 2019-06-27 16:35:25 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-06-27 16:35:25 +0200 |
commit | d4a1613e9f119ae68c695ab60f8d9856d1a54a52 (patch) | |
tree | 6de888ef76667e28c81832dc104c19b158859b9b /kalzium/src/CMakeLists.txt | |
parent | 9fb4e1ccde0b89b413bfdc8ae62f8178ecad5483 (diff) | |
download | tdeedu-d4a1613e9f119ae68c695ab60f8d9856d1a54a52.tar.gz tdeedu-d4a1613e9f119ae68c695ab60f8d9856d1a54a52.zip |
Conversion to the cmake building system.
Add includes to UI files to resolve FTBFS.
Signed-off-by: gregory guy <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kalzium/src/CMakeLists.txt')
-rw-r--r-- | kalzium/src/CMakeLists.txt | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/kalzium/src/CMakeLists.txt b/kalzium/src/CMakeLists.txt new file mode 100644 index 00000000..b0b0cac2 --- /dev/null +++ b/kalzium/src/CMakeLists.txt @@ -0,0 +1,109 @@ +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 +) + +install( + FILES kalzium.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES kalzium.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) |