[CMake] I can't compile with nmake using cmake version 2.3-20060314

Filipe Sousa filipe at ipb.pt
Tue Mar 14 10:45:26 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad King wrote:
> Filipe Sousa wrote:
>> QtCanvas\CMakeFiles\QtCanvas.dir\c:\devel\PndK\QtCanvas\qtcanvas.obj: QtCanvas\CMakeFiles\QtCanvas.dir\flags.make
>> QtCanvas\CMakeFiles\QtCanvas.dir\c:\devel\PndK\QtCanvas\qtcanvas.obj: ..\..\devel\PndK\QtCanvas\qtcanvas.cpp
> 
> Okay, I've committed a fix to avoid this error in general but I'd like 
> to make sure there is not another bug that exposed this one.  Where is 
> the CMakeLists.txt file that added the qtcanvas.cpp source file to a 
> target (full path on your disk)?  Was the file added as a full path or 
> with just a name?

Just a name. I'm sending the CMakeLists for this structure:

PndK
|-- QtCanvas
|-- app


The problem is only with nmake, it works with visual studio.

- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFEFuUWbQdNYqwwwCwRAhvkAJ48k5PvHETMAjyF8ALPWoFnLOb58QCfYZm0
RrC1SdhrOCzYaOil+j/VIgA=
=M7oU
-----END PGP SIGNATURE-----
-------------- next part --------------
CONFIGURE_FILE(paths.h.in ${CMAKE_CURRENT_BINARY_DIR}/paths.h)
CONFIGURE_FILE(AboutDlg.ui.in ${CMAKE_CURRENT_BINARY_DIR}/AboutDlg.ui)

SET(sources
  AboutDlg.ui
  algorithms.h
  AnalysisPluginManager.cc
  AnalysisPluginManager.h
  AnalysisReportDlg.cc
  AnalysisReportDlg.h
  AnalysisReportDlg.ui
  Arc.cc
  Arc.h
  ArcTool.cc
  ArcTool.h
  Canvas.cc
  Canvas.h
  CanvasView.cc
  CanvasView.h
  DefaultFileWriter.cc
  DefaultFileWriter.h
  DistributionPluginManager.cc
  DistributionPluginManager.h
  DistributionProperty.cc
  DistributionProperty.h
  draw_utils.cc
  draw_utils.h
  Editable.h
  EraserTool.cc
  EraserTool.h
  FileWriter.cc
  FileWriter.h
  FilterPluginManager.cc
  FilterPluginManager.h
  GraphFactory.cc
  GraphFactory.h
  IdGenerator.cc
  IdGenerator.h
  Label.cc
  Label.h
  main.cc
  MainWindow.cc
  MainWindow.h
  MainWindow.ui
  MainWindowIface.h
  MatrixDlg.cc
  MatrixDlg.h
  MatrixDlg.ui
  MatrixModel.cc
  MatrixModel.h
  Node.cc
  Node.h
  Object.cc
  Object.h
  paths.cc
  petri.qrc
  petri.rc
  Place.cc
  Place.h
  PlaceTool.cc
  PlaceTool.h
  PNMLFileWriter.cc
  PNMLFileWriter.h
  rtti.h
  SelectTool.cc
  SelectTool.h
  Serializable.h
  SimulationOptionsDlg.cc
  SimulationOptionsDlg.h
  SimulationOptionsDlg.ui
  TextTool.cc
  TextTool.h
  TokenTool.cc
  TokenTool.h
  Tool.cc
  Tool.h
  Transition.cc
  Transition.h
  TransitionTool.cc
  TransitionTool.h
  Visitable.h
  Visitor.h
)

INCLUDE_DIRECTORIES(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${QT_CANVAS_INCLUDE_DIR}
  ${PndK_BINARY_DIR}
  ${PndK_SOURCE_DIR}
  ${PndK_SOURCE_DIR}/interfaces
  ${PndK_SOURCE_DIR}/distributions
  )

SET(QT_CONFIG GUI XML)

IF(DEVEL_MODE)
  QT_ADD_EXECUTABLE(PndK ${sources})
ELSE(DEVEL_MODE)
  QT_ADD_EXECUTABLE(PndK WIN32 ${sources})
ENDIF(DEVEL_MODE)
TARGET_LINK_LIBRARIES(PndK properties ${QT_CANVAS_LIB})

INSTALL(TARGETS PndK DESTINATION bin)

-------------- next part --------------
CONFIGURE_FILE(paths.h.in ${CMAKE_CURRENT_BINARY_DIR}/paths.h)
CONFIGURE_FILE(AboutDlg.ui.in ${CMAKE_CURRENT_BINARY_DIR}/AboutDlg.ui)

SET(sources
  AboutDlg.ui
  algorithms.h
  AnalysisPluginManager.cc
  AnalysisPluginManager.h
  AnalysisReportDlg.cc
  AnalysisReportDlg.h
  AnalysisReportDlg.ui
  Arc.cc
  Arc.h
  ArcTool.cc
  ArcTool.h
  Canvas.cc
  Canvas.h
  CanvasView.cc
  CanvasView.h
  DefaultFileWriter.cc
  DefaultFileWriter.h
  DistributionPluginManager.cc
  DistributionPluginManager.h
  DistributionProperty.cc
  DistributionProperty.h
  draw_utils.cc
  draw_utils.h
  Editable.h
  EraserTool.cc
  EraserTool.h
  FileWriter.cc
  FileWriter.h
  FilterPluginManager.cc
  FilterPluginManager.h
  GraphFactory.cc
  GraphFactory.h
  IdGenerator.cc
  IdGenerator.h
  Label.cc
  Label.h
  main.cc
  MainWindow.cc
  MainWindow.h
  MainWindow.ui
  MainWindowIface.h
  MatrixDlg.cc
  MatrixDlg.h
  MatrixDlg.ui
  MatrixModel.cc
  MatrixModel.h
  Node.cc
  Node.h
  Object.cc
  Object.h
  paths.cc
  petri.qrc
  petri.rc
  Place.cc
  Place.h
  PlaceTool.cc
  PlaceTool.h
  PNMLFileWriter.cc
  PNMLFileWriter.h
  rtti.h
  SelectTool.cc
  SelectTool.h
  Serializable.h
  SimulationOptionsDlg.cc
  SimulationOptionsDlg.h
  SimulationOptionsDlg.ui
  TextTool.cc
  TextTool.h
  TokenTool.cc
  TokenTool.h
  Tool.cc
  Tool.h
  Transition.cc
  Transition.h
  TransitionTool.cc
  TransitionTool.h
  Visitable.h
  Visitor.h
)

INCLUDE_DIRECTORIES(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${QT_CANVAS_INCLUDE_DIR}
  ${PndK_BINARY_DIR}
  ${PndK_SOURCE_DIR}
  ${PndK_SOURCE_DIR}/interfaces
  ${PndK_SOURCE_DIR}/distributions
  )

SET(QT_CONFIG GUI XML)

IF(DEVEL_MODE)
  QT_ADD_EXECUTABLE(PndK ${sources})
ELSE(DEVEL_MODE)
  QT_ADD_EXECUTABLE(PndK WIN32 ${sources})
ENDIF(DEVEL_MODE)
TARGET_LINK_LIBRARIES(PndK properties ${QT_CANVAS_LIB})

INSTALL(TARGETS PndK DESTINATION bin)

-------------- next part --------------
PROJECT(QtCanvas)

SET(QT_CANVAS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "QtCanvas include directory")
SET(QT_CANVAS_LIB QtCanvas CACHE STRING "QtCanvasLibrary")
MARK_AS_ADVANCED(QT_CANVAS_INCLUDE_DIR QT_CANVAS_LIB)

SET(QT_CONFIG GUI)
QT_ADD_LIBRARY(QtCanvas STATIC qtcanvas.h qtcanvas.cpp)



More information about the CMake mailing list