# CMakeLists for dyninst/VC/32/dyn/none/none
set (CMAKE_C_FLAGS "${MUTATOR_DEFINES}   ${MUTATEE_CFLAGS_NATIVE}  /Od /Zi /MDd /D_DEBUG -no-pie")
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 -no-pie"
	"${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)
if(TARGET dyninstAPI)
add_executable (dyninst_group_test.dyn_VC_32_none_none ${SOURCE_LIST_22})
foreach (f ${SOURCE_LIST_22})
	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_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(test1_12.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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 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_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(test1_19.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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 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_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(test2_14.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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 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_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(test3_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_2.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_2.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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 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_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_4.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test3_7.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 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_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(test4_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_reloc.dyn_VC_32_none_none ${SOURCE_LIST_11})
foreach (f ${SOURCE_LIST_11})
	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_reloc.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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 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_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_stack_1.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
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 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_33})
foreach (f ${SOURCE_LIST_33})
	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_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_thread_7.dyn_VC_32_none_none PROPERTIES LINKER_LANGUAGE C)
add_executable (test_thread_8.dyn_VC_32_none_none ${SOURCE_LIST_5})
foreach (f ${SOURCE_LIST_5})
	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_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()
