Friday, 15 August 2014

c++ - How do I simplify this cmake file? -


I have this CMakeLists.txt.
By pattern it seems that there is a better and cleaner way to do this.

  QT5_WRAP_CPP (windowUImok ../../include/QtDisplay/WindowUI.hpp) QT5_WRAP_CPP (MainWindows_moke ../../include/QtDisplay/MainWindow.hpp) QT5_WRAP_CPP (editor_moc ../) ../include/QtDisplay/SpiderEditor.hpp) QT5_WRAP_CPP (Output_moke../../include/QtDisplay/OutputPane.hpp) add_library (Display WindowUIp MainWindows.cppaderEditor CPP OutputPenny CPP $ {windowsUImoc} $ {MAIN WINDOW_VOK} $ {editor_moc } $ {Output_moc}) qt5_use_modules (display widget core)  

I do not have much information about the conventions used in Senkel So I called 'solution' can not see.

Are you looking for something like this:

  set (Display_src Set $ ​​{PROJECT_SOURCE_DIR} / WindowUI.cpp $ {PROJECT_SOURCE_DIR} / Manwindo CPP $ {PROJECT_SOURCE_DIR} / SpeedAditor.cpp $ {PROJECT_SOURCE_DIR} / Autuppany CPP) (Display_hdr $ {PROJECT_SOURCE_DIR} /../ .. / include / QtDisplay / WindowUI.hpp $ {PRO JECT_SOURCE_DIR} /../../ contains / QtDisplay / MainWindow.hpp $ {PROJECT_SOURCE_DIR} /../../ included / QtDisplay / SpiderEditor.hpp $ {PROJECT_SOURCE_DIR} /../ .. / Include / QtDisplay / OutputPane .hpp) qt5_wrap_cpp (Display_hdr_moc $ {Display_hdr}) add_library (Display $ {Display_src} $ {Display_hdr_moc} Display) # QT 5.2+ Target_Link_Libb Ari (display Q5 :: widgets) for # QT 5.1 # Qt5_use_modules (Display Widget Core)  

No comments:

Post a Comment