[CMake] Problem building aa KDevelop project file
Christophe Cavalaria
chris.cavalaria at free.fr
Mon Jan 22 17:47:43 EST 2007
I've used a very simple CMake compile script to export a kdevelop project
file, and although the project itself works nearly perfectly, it is missing
all the .h files I've defined in the CMakeLists.txt file. Now, this is a
real problem because KDevelop code analysis tool only works for .h files
that are in the project, and thus I get no working class view and no
working code completion.
CMakeLists.txt file is of the form :
FIND_PACKAGE(SDL REQUIRED)
FIND_PACKAGE(SDL_image REQUIRED)
FIND_PACKAGE(SDL_net REQUIRED)
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} ${SDLIMAGE_INCLUDE_DIR}
${SDLNET_INCLUDE_DIR} ../network)
LINK_LIBRARIES(${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLNET_LIBRARY}
${SDLMAIN_LIBRARY})
SET(source_files main game_elements tile_lib
server_connection ../network/networkcommandbuffer)
ADD_EXECUTABLE(brclient-sdl ${source_files})
Any idea why it is so? The project file itself correctly configures a file
filter for the Headers, it's just that no header file is in the project.
More information about the CMake
mailing list