I am using Kdevelop4, and would like to use a default CMake c++ project.
My plan is to partition my application into programs, several shared libraries, and I would like to have a separate project building unit tests (I am planing to use google test).
I have several questions :
- How to modify default cmake file in order to get a shared library, and not an executable file?
- How to integrate google testing framework with cmake?
The default CMakeLists.txt produced by KDevelop4 looks something like this :
project(kdevbook)
add_executable(kdevbook main.cpp)
1) For shared library:
More info.
2) Link.
Update:
Root CMakeList.txt:
Libs MyGreatProjectLib/CMakeLists.txt:
Bin MyGreatProjectBin/CMakeLists.txt