corda/sgx-jvm/avian/cmake/Platform.cmake
Andras Slemmer 9bb3d6b972 Add 'sgx-jvm/avian/' from commit '09e4fe60d01f4f4bfb6b2976973bb4913ef61edc'
git-subtree-dir: sgx-jvm/avian
git-subtree-mainline: f978eab8d1
git-subtree-split: 09e4fe60d0
2017-03-13 12:18:24 +00:00

19 lines
476 B
CMake

IF (APPLE)
INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon )
FIND_LIBRARY(CORE_FOUNDATION_LIBRARY CoreFoundation)
MARK_AS_ADVANCED (CORE_FOUNDATION_LIBRARY)
SET(PLATFORM_LIBS ${CORE_FOUNDATION_LIBRARY})
ENDIF()
IF (MSVC)
SET(PLATFORM_CXX_FLAGS "/Wall")
ELSE()
SET(PLATFORM_CXX_FLAGS "-Wall -Werror -fno-exceptions -std=c++0x")
SET(PLATFORM_LIBS ${PLATFORM_LIBS} pthread dl)
ENDIF()
find_package(ZLIB REQUIRED)
include_directories(${ZLIB_INCLUDE_DIRS})