[CMake] Add non-build files to a project?

Jan Woetzel jw at mip.informatik.uni-kiel.de
Wed May 24 03:36:32 EDT 2006


Jan Woetzel wrote:

> ADD_EXECUTABLE(dummy dummy.cpp 
> "${CMAKE_CURRENT_BINARY_DIR}/Doc/index.html")

Sidenote:
I think you have to take care that they are added only to VS IDE 
generator builds,
in particular NOT to makefiles.

Thus we are using something like this:

IF    (CMAKE_BUILD_TOOL MATCHES "(msdev|devenv)")
 ADD_EXECUTABLE( hello ${SOURCES} ${HEADER} ${DOC})
ELSE  (CMAKE_BUILD_TOOL MATCHES "(msdev|devenv)")
  ADD_EXECUTABLE( hello ${SOURCES} )
ENDIF (CMAKE_BUILD_TOOL MATCHES "(msdev|devenv)")

Jan.

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw at mip.informatik.uni-kiel.de



More information about the CMake mailing list