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.


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to