Fixed Windows issue
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-09-05 10:59:01 +02:00
parent b6b1496e82
commit fb142c7f25
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 6 additions and 2 deletions

View File

@ -25,6 +25,6 @@ steps:
- update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
- update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DWINDOWS=ON
- cmake --build build-release-windows --target all -- -j 4 -D WINDOWS=on
- cmake --build build-release-windows --target all -- -j 4
- export WINEARCH=win64
- wine build-release-windows/PorygonLangTests.exe -s

View File

@ -6,6 +6,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(extern)
if (WINDOWS)
ADD_DEFINITIONS(-D WINDOWS=1)
endif(WINDOWS)
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")