# CMakeLists for dyninst/VC/32/dyn/none/none
set (CMAKE_C_FLAGS "${MUTATOR_DEFINES}   ${MUTATEE_CFLAGS_NATIVE}  /Od /Zi /MDd /D_DEBUG ")
set (CMAKE_C_FLAGS_DEBUG "")
set (CMAKE_C_FLAGS_RELEASE "")
set (CMAKE_C_FLAGS_RELWITHDEBINFO "")
set (CMAKE_C_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_CFLAGS_NATIVE}  /Od /Zi /MDd /D_DEBUG "
	"${CMAKE_EXE_LINKER_FLAGS} ${MUTATEE_LDFLAGS_NATIVE}  "
	"C"
	"native_cc 32 dyn"
	MUTATEEnativecc32dynC)

IF (MUTATEEnativecc32dynC MATCHES "1")
include (${PROJECT_SOURCE_DIR}/i386-unknown-nt4.0/srclists.cmake)
add_executable (dyninst_group_test.dyn_VC_32_none_none ${SOURCE_LIST_41})
foreach (f ${SOURCE_LIST_41})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(dyninst_group_test.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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_42})
foreach (f ${SOURCE_LIST_42})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test1_12.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test1_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 C)
	endif()
	endforeach()
set_target_properties(test1_14.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test1_19.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 C)
	endif()
	endforeach()
set_target_properties(test1_19.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test1_29.dyn_VC_32_none_none ${SOURCE_LIST_4})
foreach (f ${SOURCE_LIST_4})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test1_29.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test2_14.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 C)
	endif()
	endforeach()
set_target_properties(test2_14.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test2_8.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 C)
	endif()
	endforeach()
set_target_properties(test2_8.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_1.dyn_VC_32_none_none ${SOURCE_LIST_20})
foreach (f ${SOURCE_LIST_20})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test3_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_2.dyn_VC_32_none_none ${SOURCE_LIST_24})
foreach (f ${SOURCE_LIST_24})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test3_2.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_3.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 C)
	endif()
	endforeach()
set_target_properties(test3_3.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_4.dyn_VC_32_none_none ${SOURCE_LIST_37})
foreach (f ${SOURCE_LIST_37})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test3_4.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_7.dyn_VC_32_none_none ${SOURCE_LIST_16})
foreach (f ${SOURCE_LIST_16})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test3_7.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test4_1.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 C)
	endif()
	endforeach()
set_target_properties(test4_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_1.dyn_VC_32_none_none ${SOURCE_LIST_40})
foreach (f ${SOURCE_LIST_40})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_mem_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_2.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 C)
	endif()
	endforeach()
set_target_properties(test_mem_2.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_3.dyn_VC_32_none_none ${SOURCE_LIST_15})
foreach (f ${SOURCE_LIST_15})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_mem_3.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_4.dyn_VC_32_none_none ${SOURCE_LIST_10})
foreach (f ${SOURCE_LIST_10})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_mem_4.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_5.dyn_VC_32_none_none ${SOURCE_LIST_18})
foreach (f ${SOURCE_LIST_18})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_mem_5.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_6.dyn_VC_32_none_none ${SOURCE_LIST_39})
foreach (f ${SOURCE_LIST_39})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_mem_6.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_7.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 C)
	endif()
	endforeach()
set_target_properties(test_mem_7.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_mem_8.dyn_VC_32_none_none ${SOURCE_LIST_8})
foreach (f ${SOURCE_LIST_8})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_mem_8.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_snip_remove.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 C)
	endif()
	endforeach()
set_target_properties(test_snip_remove.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_stack_1.dyn_VC_32_none_none ${SOURCE_LIST_36})
foreach (f ${SOURCE_LIST_36})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_stack_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_stack_3.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 C)
	endif()
	endforeach()
set_target_properties(test_stack_3.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_thread_6.dyn_VC_32_none_none ${SOURCE_LIST_38})
foreach (f ${SOURCE_LIST_38})
	get_source_file_property(lang ${f} LANGUAGE)
	if(lang MATCHES "C")
		set_source_files_properties(${f} PROPERTIES LANGUAGE C)
	endif()
	endforeach()
set_target_properties(test_thread_6.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_thread_7.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 C)
	endif()
	endforeach()
set_target_properties(test_thread_7.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_thread_8.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 C)
	endif()
	endforeach()
set_target_properties(test_thread_8.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)


INSTALL (TARGETS
		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_mem_1.dyn_VC_32_none_none
		test_mem_2.dyn_VC_32_none_none
		test_mem_3.dyn_VC_32_none_none
		test_mem_4.dyn_VC_32_none_none
		test_mem_5.dyn_VC_32_none_none
		test_mem_6.dyn_VC_32_none_none
		test_mem_7.dyn_VC_32_none_none
		test_mem_8.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})

ELSE()
MESSAGE (STATUS "Compiler check for native_cc failed")
ENDIF()
ELSE()
MESSAGE (STATUS "Compiler native_cc not present")
ENDIF()
