2017-07-24 20:00:39 +00:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2017-07-27 15:34:25 +00:00
|
|
|
project(afp VERSION 0.0 LANGUAGES CXX C)
|
2017-07-24 20:00:39 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS FALSE)
|
|
|
|
|
2017-07-27 15:34:25 +00:00
|
|
|
|
|
|
|
if (WIN32 OR CYGWIN OR MSYS OR MINGW)
|
|
|
|
if (NOT MSVC)
|
|
|
|
set(REMAP src/remap_os_error.c)
|
|
|
|
endif()
|
2017-07-28 14:04:45 +00:00
|
|
|
else()
|
2017-08-09 12:13:08 +00:00
|
|
|
set(XATTR src/xattr.c)
|
2017-07-27 02:12:08 +00:00
|
|
|
endif()
|
2017-07-24 20:00:39 +00:00
|
|
|
|
2017-07-28 14:04:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
add_library(afp src/finder_info.cpp src/resource_fork.cpp ${XATTR} ${REMAP})
|
2017-07-24 20:00:39 +00:00
|
|
|
|
|
|
|
target_include_directories(afp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
|
|
|
target_include_directories(afp PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/afp)
|