Commit 9a0a1388 authored by François Grisez's avatar François Grisez

Add support of MacOSX

parent 3f0eb478
......@@ -18,7 +18,7 @@ set(COREC_SOURCES
str/str.c
)
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows)
if(CMAKE_HOST_WIN32)
list(APPEND COREC_SOURCES
helpers/charconvert/charconvert_win32.c
helpers/date/date_win32.c
......@@ -29,13 +29,22 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows)
)
else()
list(APPEND COREC_SOURCES
helpers/charconvert/charconvert_linux.c
helpers/date/date_libc.c
helpers/file/file_libc.c
helpers/system/ccsystem_posix.c
multithread/multithread_pthread.c
str/str_linux.c
)
if(CMAKE_HOST_APPLE)
list(APPEND COREC_SOURCES
helpers/charconvert/charconvert_osx.c
str/str_osx.c
)
else()
list(APPEND COREC_SOURCES
helpers/charconvert/charconvert_linux.c
str/str_linux.c
)
endif()
endif()
if(${CONFIG_STDIO})
......@@ -89,4 +98,4 @@ install(FILES node/node.h
node/nodetree.h
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/corec/node
)
install(FILES str/str.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/corec/str)
\ No newline at end of file
install(FILES str/str.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/corec/str)
......@@ -10,12 +10,10 @@ add_library(ebml2 STATIC
ebmlvoid.c
)
target_link_libraries(ebml2 corec)
install(TARGETS ebml2
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
install(DIRECTORY ebml
DESTINATION ${CMAKE_INSTALL_PREFIX}/include
)
\ No newline at end of file
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment