CMakeLists.txt 477 Bytes
Newer Older
xiongziliang committed
1 2 3 4 5 6 7 8 9 10 11
aux_source_directory(. TEST_SRC_LIST)
foreach(TEST_SRC ${TEST_SRC_LIST})
    STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC})
    message(STATUS "add c api tester:${TEST_EXE_NAME}")
    set(exe_name api_tester_${TEST_EXE_NAME})
    add_executable(${exe_name} ${TEST_SRC})

	if(WIN32)
		set_target_properties(${exe_name} PROPERTIES COMPILE_FLAGS ${VS_FALGS} )
	endif(WIN32)

xiongziliang committed
12
    target_link_libraries(${exe_name} mk_api)
xiongziliang committed
13 14 15 16 17 18 19 20 21 22 23 24 25
endforeach()