Hi all,

I'm using cmake to generate make file for xcode 3.13, I'm using the following file structure to place different modules:

Project Root
|----CMakefile.txt (1)
|----gui
|----CMakefile.txt (2)
|----src
|----include
|----wxstc
|----CMakefile.txt (3)
|----src
|----include
|----... other modules

Here's config in the first CMakefile.txt

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(HelloWorldApp)

SET(WXWIDGETS_DEFINITIONS -D__WX__ -D__WXMAC__ -DwxUSE_UNICODE)

ADD_DEFINITIONS(-DMODDED -DNOPCH -D_UNICODE -DUNICODE -D_LIB ${WXWIDGETS_DEFINITIONS})

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

add_subdirectory(gui)


Here's the config in the CMakefile.txt for sub module:
PROJECT(gui)

FILE(GLOB_RECURSE inFiles
src/*.cpp
include/*.h
)

ADD_LIBRARY(gui ${inFiles})

INCLUDE_DIRECTORIES(include
include
)

Generate project files for xcode, then I got the error:
make: ../CMakeScripts/ReRunCMake.make: No such file or directory
make: *** No rule to make target `../CMakeScripts/ReRunCMake.make'. Stop.

this error can be manual fix by change property for target/CMake Rerun from
make -C .. -f ../CMakeScripts/ReRunCMake.make
to
make -C . -f ./CMakeScripts/ReRunCMake.make

but then got another error:
make: *** No rule to make target `../../../wxstc/CMakeLists.txt', needed by `CMakeFiles/cmake.check_cache'. Stop.


Does anyone knows how to do? Is there something wrong in my CMakeList.txt file? or do I missed something?

It works before when I was using VC6 in another project.

Thanks.

Best Regards

Wei Xu
_______________________________________________
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