[CMake] Adding "*.obj" geometry files...
Brad King
brad.king at kitware.com
Wed Jun 20 08:54:26 EDT 2012
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
More information about the CMake
mailing list