1project(appcompat) 2add_definitions(-D__ROS_LONG64__ -DWINETEST_USE_DBGSTR_LONGLONG) 3 4include_directories(${CMAKE_CURRENT_BINARY_DIR}) 5 6list(APPEND SOURCE 7 apphelp.c 8 data.c 9 db.cpp 10 env.c 11 layerapi.c 12 testlist.c 13 testdata.rc 14 testdb.xml) 15 16add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb 17 COMMAND native-xml2sdb -i ${CMAKE_CURRENT_SOURCE_DIR}/testdb.xml -o ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb 18 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/testdb.xml native-xml2sdb) 19 20add_rc_deps(testdata.rc ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb) 21add_executable(apphelp_apitest ${SOURCE}) 22set_module_type(apphelp_apitest win32cui) 23target_link_libraries(apphelp_apitest ${PSEH_LIB}) 24add_importlibs(apphelp_apitest advapi32 userenv version shlwapi msvcrt kernel32 ntdll) 25add_rostests_file(TARGET apphelp_apitest) 26