reactos/modules/rostests/unittests/setuplib/CMakeLists.txt
Hermès Bélusca-Maïto f135cab83e
[SETUPLIB] Add a setuplib_static library, used for the dll and the unit-tests.
Since the setuplib.dll isn't available after installing ReactOS, build
instead a static library that is then used for the dll, and linked into
the setuplib_unittest, so that it can be run in our test-suite.

Addendum to commit d7c1d220.
2025-04-20 19:18:28 +02:00

18 lines
535 B
CMake

PROJECT(setuplib_unittest)
include_directories(
${REACTOS_SOURCE_DIR}/modules/rostests/apitests/include
${REACTOS_SOURCE_DIR}/base/setup/lib)
list(APPEND SOURCE
IsValidInstallDirectory.c
testlist.c
precomp.h)
add_executable(setuplib_unittest ${SOURCE})
target_link_libraries(setuplib_unittest setuplib_static ${PSEH_LIB})
set_module_type(setuplib_unittest win32cui)
add_importlibs(setuplib_unittest msvcrt kernel32 ntdll)
#add_pch(setuplib_unittest precomp.h SOURCE)
add_rostests_file(TARGET setuplib_unittest)