[CMake] VS Solution not showing source files

Mike Jackson mike.jackson at imts.us
Tue Nov 28 10:53:20 EST 2006


I guess the other important issue is that I have full admin on the laptop but the Desktop is locked down pretty good (DoD) so could it be a permissions issue?

CMakeLists.txt is attached.

-----Original Message-----
From:	Sylvain Benner [mailto:benner at virtools.com]
Sent:	Tue 11/28/2006 10:12 AM
To:	Mike Jackson; cmake at cmake.org
Cc:	
Subject:	Re: [CMake] VS Solution not showing source files


Can you show what your CMakeLists.txt looks like ?


Mike Jackson a écrit :
> I have a cmake based project on Windows XP where I am using CMake to generate the VS solution files. Everything seems to work fine on my laptop but when I try this on my Desktop I get the Solution generated but after I open the solution file and look into the projects there are NO source files listed. All I get listed is "Debug | Win32", "MinSizeRel | Win32" ... 
>
> Has anyone ever seen this before? and if so how can I correct it? I am assuming that there is a problem with the VS install... as this works fine on my laptop.
>
>   I am new to VS so forgive me if this has been covered before. I usually code with MinGW or Xcode.
>
> Thanks
> Mike Jackson
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>   

-- 

Sylvain Benner
www.virtools.com <http://www.virtools.com> | benner at virtools.com 
<mailto:benner at virtools.com>
*Virtools SA* | Developer | R&D department
93 rue vieille du temple
75003 PARIS
France

*Tel:* +33 1 42 71 46 86
*Fax:* +33 1 42 71 86 53





-------------- next part --------------

PROJECT (CFoamTools)

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

#----- What VTK libraries are we dependant on ---------------------------------
# List the kits from VTK that are needed by this project.
SET(vtkLocal_LIBS
  vtkCommon
  vtkIO
)

#------ Setup output Directories ---------------------------------
SET (LIBRARY_OUTPUT_PATH
	${PROJECT_BINARY_DIR}/Bin
	CACHE PATH
	"Single Directory for all Libraries"
	FORCE
)

#------ Setup the Executable output Directory ---------------------------------
SET (EXECUTABLE_OUTPUT_PATH
	${PROJECT_BINARY_DIR}/Bin
	CACHE PATH
	"Single Directory for all Executables."
	FORCE
)

#------ Add the Source Files ---------------------------------
SET (SOURCES
	src/main.cpp
  	src/CFoamModel.cpp
  	src/vtkRoboMetWriter.cpp
)

#-- Add the "src" directory to the include list
INCLUDE_DIRECTORIES( "${PROJECT_SOURCE_DIR}/src/" )

IF (APPLE)
    SET(GUI_TYPE MACOSX_BUNDLE)
    option(OSX_DWARF_DEBUG "Use Dwarf Debug Style" ON)
	if (OSX_DWARF_DEBUG )
		set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gdwarf-2")
	endif(OSX_DWARF_DEBUG )
endif (APPLE)

# enable warnings
ADD_DEFINITIONS( -Wall )

ADD_EXECUTABLE(CFoamVolumeBuilder   
	${SOURCES} 
)
TARGET_LINK_LIBRARIES(CFoamVolumeBuilder
  ${vtkLocal_LIBS}
)
  


More information about the CMake mailing list