Refactor CMakeFiles
ClosedPublic

Authored by ognarb on May 13 2020, 3:42 PM.

Details

Summary
  • Use ECM for adding tests
  • Use consistent naming for CMake functions
  • Only add tests when adding -DBUILD_TESTING
  • Code formatting
  • Use option for options
  • Use ECM for version number and change version number from 2.49.beta to 2.49.90
Test Plan

make -j8 install works and make test too

Diff Detail

Repository
R1050 BasKet
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ognarb requested review of this revision.May 13 2020, 3:42 PM
ognarb created this revision.
ognarb added inline comments.May 13 2020, 3:51 PM
src/CMakeLists.txt
138

I plan to either remove the broken KPART integration or to fix it in a followup patch. KDEUI/kdeui was from KDE4 according to Google.

ognarb edited the test plan for this revision. (Show Details)May 13 2020, 3:53 PM
ognarb added reviewers: niccolove, iasensio, alex.
iasensio added inline comments.May 13 2020, 4:00 PM
src/CMakeLists.txt
168

Would you mind to expand the FILES list, one per line? I don't know if this is usual in kde codebase but having tried myself, it seems much more clear to me when there are a lot of files.
Feel free to ignore this, of course.

ognarb updated this revision to Diff 82763.May 13 2020, 4:04 PM
  • Extend files
niccolove accepted this revision.May 13 2020, 7:07 PM
This revision is now accepted and ready to land.May 13 2020, 7:07 PM
This revision was automatically updated to reflect the committed changes.
ognarb marked an inline comment as done.