How to modify cmakelists to include other plugins?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to modify cmakelists to include other plugins?

Himanshu Shekhar
I am trying to write some test cases for available imgur plugin as well as other plugins based on imgur's code.
I am stuck at the compiling step from many days.
To check it simply, I want to include "plugin_imgur.h" in imgur directory in "main.cpp" present at https://cgit.kde.org/kipi-plugins.git/tree/tests/imageselector.

How will I have to modify CMakeLists.txt to make it work.
--

Regards 

Himanshu Shekhar

https://github.com/himanshub16/

Reply | Threaded
Open this post in threaded view
|

Re: How to modify cmakelists to include other plugins?

Gilles Caulier-4
move your test code to imgur plugin dir. It's more simple and safe to not externalize test code outside the relevant plugin. Each tool must do not depend of other ones.

Gilles Caulier

2017-03-19 12:16 GMT+01:00 Himanshu Shekhar <[hidden email]>:
I am trying to write some test cases for available imgur plugin as well as other plugins based on imgur's code.
I am stuck at the compiling step from many days.
To check it simply, I want to include "plugin_imgur.h" in imgur directory in "main.cpp" present at https://cgit.kde.org/kipi-plugins.git/tree/tests/imageselector.

How will I have to modify CMakeLists.txt to make it work.
--

Regards 

Himanshu Shekhar

https://github.com/himanshub16/