On 06/19/2012 04:27 PM, Daniel Dekkers wrote: > CMAKE_MINIMUM_REQUIRED(VERSION 2.8) > PROJECT(HeaderOnlyTest) > SET(SOURCE_FILE main.c) > SET(RESOURCE_FILE test.xml) > SET_SOURCE_FILES_PROPERTIES(${RESOURCE_FILE} PROPERTIES HEADER_FILE_ONLY > TRUE) > ADD_EXECUTABLE(HeaderOnlyTest ${SOURCE_FILE} ${RESOURCE_FILE}) > SET_TARGET_PROPERTIES(HeaderOnlyTest PROPERTIES RESOURCE "${RESOURCE_FILE}") > > With the VS2010 generator, test.xml is included.
With CMake 2.8.8 I get no test.xml at all in the project file. If I eliminate the RESOURCE property then I get test.xml with type "ClInclude" in the .vcxproj file, and it does not build. Please attach your resulting HeaderOnlyTest.vcxproj and the CMakeCache.txt from the build tree. -Brad -- 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