Skip to content

Commit c9e0ef2

Browse files
authored
Fix build for install test (#1573)
1 parent bfaa250 commit c9e0ef2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Install/Test/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ endif()
4444

4545
set(APPS_DIR "../../Apps")
4646
set(UNITTESTS_DIR "${APPS_DIR}/UnitTests")
47-
set(LOCAL_SCRIPTS "${UNITTESTS_DIR}/dist/tests.js")
4847

4948
set(SOURCES
50-
"${UNITTESTS_DIR}/Shared/Shared.h"
51-
"${UNITTESTS_DIR}/Shared/Shared.cpp")
49+
"${UNITTESTS_DIR}/Shared/Tests.h"
50+
"${UNITTESTS_DIR}/Shared/Tests.cpp"
51+
"${UNITTESTS_DIR}/Shared/Tests.JavaScript.cpp"
52+
"${UNITTESTS_DIR}/Shared/Tests.NativeEngine.cpp")
5253

5354
if(WIN32 AND NOT WINDOWS_STORE)
5455
set(SOURCES ${SOURCES} "${UNITTESTS_DIR}/Win32/App.cpp")
@@ -121,7 +122,7 @@ elseif(NAPI_JAVASCRIPT_ENGINE STREQUAL "V8")
121122
endif()
122123
endif()
123124

124-
add_executable(TestInstall ${LOCAL_SCRIPTS} ${SOURCES})
125+
add_executable(TestInstall ${SOURCES})
125126

126127
set(INSTALL_LIBS_DIR "${BINARY_DIR}/install/lib")
127128
target_include_directories(TestInstall PRIVATE "${BINARY_DIR}/install/include")

0 commit comments

Comments
 (0)