2016-05-28 17:55:56 +00:00
|
|
|
project(appcompat)
|
2016-08-29 15:19:55 +00:00
|
|
|
add_definitions(-D__ROS_LONG64__ -DWINETEST_USE_DBGSTR_LONGLONG)
|
2016-03-29 08:55:40 +00:00
|
|
|
|
2017-06-26 14:58:08 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2016-03-29 08:55:40 +00:00
|
|
|
list(APPEND SOURCE
|
2016-04-24 13:05:00 +00:00
|
|
|
apphelp.c
|
2016-05-01 19:12:06 +00:00
|
|
|
data.c
|
2016-10-30 19:39:43 +00:00
|
|
|
db.cpp
|
2017-06-10 20:31:58 +00:00
|
|
|
env.c
|
2016-05-01 19:12:06 +00:00
|
|
|
layerapi.c
|
2017-06-26 14:58:08 +00:00
|
|
|
testlist.c
|
|
|
|
testdata.rc
|
|
|
|
testdb.xml)
|
2016-03-29 08:55:40 +00:00
|
|
|
|
2017-06-26 14:58:08 +00:00
|
|
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb
|
|
|
|
COMMAND native-xml2sdb -i ${CMAKE_CURRENT_SOURCE_DIR}/testdb.xml -o ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/testdb.xml native-xml2sdb)
|
|
|
|
|
|
|
|
add_custom_target(testdb DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb)
|
|
|
|
add_rc_deps(testdata.rc testdb)
|
2016-03-29 08:55:40 +00:00
|
|
|
add_executable(apphelp_apitest ${SOURCE})
|
|
|
|
set_module_type(apphelp_apitest win32cui)
|
2017-06-10 20:31:58 +00:00
|
|
|
target_link_libraries(apphelp_apitest ${PSEH_LIB})
|
2016-10-30 19:39:43 +00:00
|
|
|
add_importlibs(apphelp_apitest advapi32 userenv version shlwapi msvcrt kernel32 ntdll)
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET apphelp_apitest)
|