mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 19:03:01 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
This takes care of adding the relvant include directory and the _ATL_NO_EXCEPTIONS define, if needed
30 lines
889 B
CMake
30 lines
889 B
CMake
project(appcompat)
|
|
|
|
add_definitions(
|
|
-D__ROS_LONG64__
|
|
-DWINETEST_USE_DBGSTR_LONGLONG
|
|
-DUNICODE
|
|
-D_UNICODE)
|
|
|
|
list(APPEND SOURCE
|
|
apphelp.c
|
|
data.c
|
|
db.cpp
|
|
env.c
|
|
layerapi.c
|
|
register.cpp
|
|
testlist.c
|
|
testdata.rc
|
|
testdb.xml)
|
|
|
|
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_rc_deps(testdata.rc ${CMAKE_CURRENT_BINARY_DIR}/testdb.sdb)
|
|
add_executable(apphelp_apitest ${SOURCE})
|
|
set_module_type(apphelp_apitest win32cui)
|
|
target_link_libraries(apphelp_apitest ${PSEH_LIB} cpprt atl_classes)
|
|
add_importlibs(apphelp_apitest advapi32 userenv version shlwapi msvcrt kernel32 ntdll)
|
|
add_rostests_file(TARGET apphelp_apitest)
|