<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transational//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
</HEAD>
<BODY>Hello<br><br>I am trying to create a multiproject containing several projects libraries with KDEvelop4 and CMake.I don't know the exact rules to follow in order to set up a multi project library with KDEvelop and CMake: the problem is the following<br><br>I would like to have all the project at the same level in a directory.<br>the root directory is pKD0 and in pKD0 I create with KDevelop projA (library A),projB (library B) etc.. and projMain (executable using the set of libraries)<br><br>their CMakeList files are<br>projA:<br>project(proja)<br>add_library(proja STATIC cTest.cpp)<br> <br>projMain:<br>cmake_minimum_required(VERSION 2.8)<br>project(projMain)<br>add_subdirectory(projA)<br>include_directories (${PROJA_SOURCE_DIR}/projA) <br>add_executable(projMain main.cpp)<br>target_link_libraries(projMain proja)<br><br>I got a message that "projA is not an existing library" and when I put add_subdirectory(/pascal/pKD0/projA) I get "no rule to make target" <br><br>this works when projA is under ProjMain directory, but when I add a new project under the ProjMain KDEvelop put it both outside and under the projmain<br><br>I don't know hown to organise the multiproject directories with KDevelop and CMake, thank you in advance if someone could clarrify this point<br>pascal<br></BODY></HTML>