Hello

I am trying to create a multiproject containing several projects libraries with KDEvelop4 and CMake
yesterday I was helped from the mailing list to execute a single library.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

I would like to have all the project at the same level in a directory.
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)

their CMakeList files are
projA:
project(proja)
add_library(proja STATIC cTest.cpp)
 
projMain:
cmake_minimum_required(VERSION 2.8)
project(projMain)
add_subdirectory(projA)
include_directories (${PROJA_SOURCE_DIR}/projA)
add_executable(projMain main.cpp)
target_link_libraries(projMain proja)

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"

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

I don't know hown to organise the multiproject directories with KDevelop and CMake, thank you in advance if someone could clarrify this point
pascal


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to