Build should use relative libraries
This commit is contained in:
parent
f28259c372
commit
1740f18b25
@ -306,8 +306,6 @@ if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND TEST_ONLY)
|
||||
# stdc++fs
|
||||
target_link_libraries(AiL_test stdc++fs)
|
||||
target_link_libraries(AiL_test stdc++exp)
|
||||
add_library( discord_game_sdk SHARED IMPORTED )
|
||||
set_property(TARGET discord_game_sdk PROPERTY IMPORTED_LOCATION "discord_game_sdk.so")
|
||||
add_library( libsteam_api SHARED IMPORTED )
|
||||
set_property(TARGET libsteam_api PROPERTY IMPORTED_LOCATION "libsteam_api.so")
|
||||
|
||||
@ -322,8 +320,8 @@ if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND TEST_ONLY)
|
||||
AiL_test
|
||||
PRIVATE
|
||||
-static-libstdc++
|
||||
"Adventures in Lestoria/discord_game_sdk.so"
|
||||
"Adventures in Lestoria/libsteam_api.so")
|
||||
"discord_game_sdk.so"
|
||||
"libsteam_api.so")
|
||||
|
||||
endif() # Linux
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
cd "bin"
|
||||
cp "../Adventures in Lestoria/discord_game_sdk.so" .
|
||||
cp "../Adventures in Lestoria/libsteam_api.so" .
|
||||
./AiL_test -d yes -s --use-colour yes
|
||||
cd ..
|
||||
./AiL_test -d yes -s --use-colour yes
|
||||
2
test.sh
2
test.sh
@ -1,3 +1,5 @@
|
||||
rm CMakeCache.txt
|
||||
cp "./Adventures in Lestoria/discord_game_sdk.so" .
|
||||
cp "./Adventures in Lestoria/libsteam_api.so" .
|
||||
git update-index --assume-unchanged "Adventures in Lestoria/packkey.cpp"
|
||||
cmake -DTEST_ONLY=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release .;make -j 8
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user