From 626030abc4302fcc5bc5dc0854ed0a81a03ae1dc Mon Sep 17 00:00:00 2001 From: Zezula Ladislav Date: Thu, 9 Nov 2017 19:52:42 +0100 Subject: + Fixed Linux build --- CMakeLists.txt | 4 +++- StormLib_test.vcproj | 2 +- src/StormPort.h | 5 +++++ test/StormTest.cpp | Bin 347258 -> 346910 bytes test/TLogHelper.cpp | 11 ++++++++--- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3055577..f5211b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -359,7 +359,9 @@ install(TARGETS ${LIBRARY_NAME} INCLUDE(CPack) if(STORM_BUILD_TESTS) - add_executable(storm_test ${TEST_SRC_FILES}) target_link_libraries(storm_test ${LIBRARY_NAME}) install(TARGETS storm_test DESTINATION bin) endif() + +add_executable(storm_test ${SRC_FILES} ${TOMCRYPT_FILES} ${TOMMATH_FILES} ${ZLIB_BZIP2_FILES} ${TEST_SRC_FILES}) +install(TARGETS storm_test RUNTIME DESTINATION bin) diff --git a/StormLib_test.vcproj b/StormLib_test.vcproj index 61561d5..0ef7c5e 100644 --- a/StormLib_test.vcproj +++ b/StormLib_test.vcproj @@ -259,7 +259,7 @@ OutputDirectory="./bin/$(ProjectName)/$(PlatformName)/$(ConfigurationName)" IntermediateDirectory="./bin/$(ProjectName)/$(PlatformName)/$(ConfigurationName)" ConfigurationType="1" - CharacterSet="2" + CharacterSet="1" WholeProgramOptimization="1" >