
cmake_minimum_required(VERSION 2.8)

PROJECT(CMake_BugTest)

set (CMake_BugTest_RootDir 
		${CMake_BugTest_SOURCE_DIR}
		)

set (CMake_BugTest_BINARY_DIR
		${CMake_BugTest_RootDir}/BinDir
		)

include_directories (
		${CMake_BugTest_RootDir}
		${CMake_BugTest_RootDir}/include___
		)

file (GLOB_RECURSE CMake_BugTest_SourceFiles	
		${CMake_BugTest_RootDir}/*.c
		${CMake_BugTest_RootDir}/*.cpp
		${CMake_BugTest_RootDir}/*.CPP)
		
file (GLOB_RECURSE CMake_BugTest_HeaderFiles	
		${CMake_BugTest_RootDir}/*.h
		${CMake_BugTest_RootDir}/*.H
		${CMake_BugTest_RootDir}/*.hpp)
		
add_definitions(
		-D_UNICODE
		)	

#set (CMAKE_MFC_FLAG 2)
		
add_executable (CMake_BugTest		WIN32
		${CMake_BugTest_SourceFiles}	
		${CMake_BugTest_HeaderFiles}
		)
		
SET_TARGET_PROPERTIES (CMake_BugTest 
		PROPERTIES DEBUG_POSTFIX D
		)
