# CMakeLists for dyninst/VC++/32/dyn/none/none
set (CMAKE_CXX_FLAGS "${MUTATOR_DEFINES}   ${MUTATEE_CXXFLAGS_NATIVE}  /Od /Zi /MDd /D_DEBUG -no-pie")
set (CMAKE_CXX_FLAGS_DEBUG "")
set (CMAKE_CXX_FLAGS_RELEASE "")
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "")
set (CMAKE_CXX_COMPILER "${M_native_cc}")
include_directories("${PROJECT_SOURCE_DIR}/testsuite/src")
include_directories("${PROJECT_SOURCE_DIR}/testsuite/src/dyninst")
add_definitions(-DSOLO_MUTATEE)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MUTATEE_LDFLAGS_NATIVE}  ")
IF (NOT ${M_native_cc} MATCHES "NOTFOUND")
CHECK_MUTATEE_COMPILER ("${M_native_cc}"
	"${MUTATOR_DEFINES}   ${MUTATEE_CXXFLAGS_NATIVE}  /Od /Zi /MDd /D_DEBUG -no-pie"
	"${CMAKE_EXE_LINKER_FLAGS} ${MUTATEE_LDFLAGS_NATIVE}  "
	"CXX"
	"native_cc 32 dyn"
	MUTATEEnativecc32dynCXX)

IF (MUTATEEnativecc32dynCXX MATCHES "1")
include (${PROJECT_SOURCE_DIR}/i386-unknown-nt4.0/srclists.cmake)
if(TARGET dyninstAPI)
add_executable (dyninst_cxx_group_test.dyn_VC++_32_none_none ${SOURCE_LIST_19})
foreach (f ${SOURCE_LIST_19})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(dyninst_cxx_group_test.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (dyninst_group_test.dyn_VC++_32_none_none ${SOURCE_LIST_6})
foreach (f ${SOURCE_LIST_6})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(dyninst_group_test.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries (dyninst_group_test.dyn_VC++_32_none_none ${CMAKE_DL_LIBS})
add_executable (test1_12.dyn_VC++_32_none_none ${SOURCE_LIST_35})
foreach (f ${SOURCE_LIST_35})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test1_12.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test1_14.dyn_VC++_32_none_none ${SOURCE_LIST_25})
foreach (f ${SOURCE_LIST_25})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test1_14.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test1_19.dyn_VC++_32_none_none ${SOURCE_LIST_12})
foreach (f ${SOURCE_LIST_12})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test1_19.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test1_29.dyn_VC++_32_none_none ${SOURCE_LIST_3})
foreach (f ${SOURCE_LIST_3})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test1_29.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test2_14.dyn_VC++_32_none_none ${SOURCE_LIST_30})
foreach (f ${SOURCE_LIST_30})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test2_14.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test2_8.dyn_VC++_32_none_none ${SOURCE_LIST_1})
foreach (f ${SOURCE_LIST_1})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test2_8.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test3_1.dyn_VC++_32_none_none ${SOURCE_LIST_17})
foreach (f ${SOURCE_LIST_17})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test3_1.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test3_2.dyn_VC++_32_none_none ${SOURCE_LIST_21})
foreach (f ${SOURCE_LIST_21})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test3_2.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test3_3.dyn_VC++_32_none_none ${SOURCE_LIST_27})
foreach (f ${SOURCE_LIST_27})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test3_3.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test3_4.dyn_VC++_32_none_none ${SOURCE_LIST_32})
foreach (f ${SOURCE_LIST_32})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test3_4.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test3_7.dyn_VC++_32_none_none ${SOURCE_LIST_14})
foreach (f ${SOURCE_LIST_14})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test3_7.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test4_1.dyn_VC++_32_none_none ${SOURCE_LIST_2})
foreach (f ${SOURCE_LIST_2})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test4_1.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_reloc.dyn_VC++_32_none_none ${SOURCE_LIST_13})
foreach (f ${SOURCE_LIST_13})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_reloc.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_snip_remove.dyn_VC++_32_none_none ${SOURCE_LIST_26})
foreach (f ${SOURCE_LIST_26})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_snip_remove.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_stack_1.dyn_VC++_32_none_none ${SOURCE_LIST_31})
foreach (f ${SOURCE_LIST_31})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_stack_1.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_stack_3.dyn_VC++_32_none_none ${SOURCE_LIST_29})
foreach (f ${SOURCE_LIST_29})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_stack_3.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_thread_6.dyn_VC++_32_none_none ${SOURCE_LIST_33})
foreach (f ${SOURCE_LIST_33})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_thread_6.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_thread_7.dyn_VC++_32_none_none ${SOURCE_LIST_34})
foreach (f ${SOURCE_LIST_34})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_thread_7.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)
add_executable (test_thread_8.dyn_VC++_32_none_none ${SOURCE_LIST_7})
foreach (f ${SOURCE_LIST_7})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE CXX)
	endif()
	endforeach()
set_target_properties(test_thread_8.dyn_VC++_32_none_none PROPERTIES LINKER_LANGUAGE CXX)


INSTALL (TARGETS
		dyninst_cxx_group_test.dyn_VC++_32_none_none
		dyninst_group_test.dyn_VC++_32_none_none
		test1_12.dyn_VC++_32_none_none
		test1_14.dyn_VC++_32_none_none
		test1_19.dyn_VC++_32_none_none
		test1_29.dyn_VC++_32_none_none
		test2_14.dyn_VC++_32_none_none
		test2_8.dyn_VC++_32_none_none
		test3_1.dyn_VC++_32_none_none
		test3_2.dyn_VC++_32_none_none
		test3_3.dyn_VC++_32_none_none
		test3_4.dyn_VC++_32_none_none
		test3_7.dyn_VC++_32_none_none
		test4_1.dyn_VC++_32_none_none
		test_reloc.dyn_VC++_32_none_none
		test_snip_remove.dyn_VC++_32_none_none
		test_stack_1.dyn_VC++_32_none_none
		test_stack_3.dyn_VC++_32_none_none
		test_thread_6.dyn_VC++_32_none_none
		test_thread_7.dyn_VC++_32_none_none
		test_thread_8.dyn_VC++_32_none_none
	DESTINATION ${INSTALL_DIR})

ENDIF()
ENDIF()
ENDIF()
