Set Windows flag.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-02-27 17:24:46 +01:00
parent aacca6e5e2
commit 7d6ec6f5a6
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
add_library(Arbutils SHARED ${SRC_FILES}) add_library(Arbutils SHARED ${SRC_FILES})
set_target_properties(Arbutils PROPERTIES LINKER_LANGUAGE CXX) set_target_properties(Arbutils PROPERTIES LINKER_LANGUAGE CXX)
if (WINDOWS)
ADD_DEFINITIONS(-D WINDOWS=1)
endif (WINDOWS)
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp") file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")
if (NOT DEFINED CONAN_EXPORTED) if (NOT DEFINED CONAN_EXPORTED)
add_executable(ArbutilsTests ${TEST_FILES} extern/catch.hpp) add_executable(ArbutilsTests ${TEST_FILES} extern/catch.hpp)