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