Define WINDOWS/UNIX macroses.

This commit is contained in:
Kolan Sh 2018-06-22 09:39:48 +03:00
parent f63c847401
commit 94cbc852ec
1 changed files with 5 additions and 0 deletions

View File

@ -8,4 +8,9 @@ SET (LC_RELATIVE_PREFIX "..")
CONFIGURE_FILE ( "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/library_constructor.c.in" "${LibExtraSources}") CONFIGURE_FILE ( "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/library_constructor.c.in" "${LibExtraSources}")
SET (LibLinkLibs ${PROJECT_LOWERCASE_NAME}-iface gmodule-2.0) SET (LibLinkLibs ${PROJECT_LOWERCASE_NAME}-iface gmodule-2.0)
INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/src/iface") INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}/src/iface")
IF (WIN32)
SET (BinValaOpts -D WINDOWS)
ELSE (WIN32)
SET (BinValaOpts -D UNIX)
ENDIF (WIN32)
INCLUDE (ValaLibCommonRules) INCLUDE (ValaLibCommonRules)