I've been wrestling with cmake on and off for about 3 days now trying to setup a kde4 project to use it. I've attempted to emulate the setup of the kde svn projects but I still seem to be having trouble. Here is my setup: /, /src, /build
Under / I have a CMakeLists.txt:
|
Source code
|
1
2
|
find_package(KDE4 REQUIRED)
add_subdirectory(src)
|
Under /src I have a CMakeLists.txt:
|
Source code
|
1
2
3
4
|
project(projname)
include_directories(${KDE4_INCLUDES})
kde4_add_executable(projname srcs)
target_link_libraries(projname ${KDE4_KDEUI_LIBS})
|
/build is empty.
I cd into build and run "cmake ../" then "make" says "no objdir found. Tried /".
Am I just stupid or doing something terribly wrong? I'm only using a single source file which consists of main() with a few qt and kde calls and then an exit; I'm doing this to test and setup and I still can't get it working.
Thanks for the help.
Solution:
Nevermind, I'm an idiot, I had an old alias (make=makeobj) from when I was setting up stuff to build alpha kde.