# CMakeTest cmake_minimum_required(VERSION 2.6) project(testProj CXX) add_executable(test main.cpp stack.obj) # the following doesn't seem to affect anything, at least with VS2010 Generator set_source_files_properties( stack.obj PROPERTIES EXTERNAL_OBJECT TRUE )