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