Skip to content

Commit

Permalink
Merge pull request #27 from idoimaging/cmakelists
Browse files Browse the repository at this point in the history
Edit for Mac: runtime/cpp_stl/CMakeLists.txt
  • Loading branch information
GreyCat authored Jun 18, 2019
2 parents 1ea056a + 817568d commit e0f15f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ find_package(ZLIB)

find_path(ICONV_INCLUDE_DIRS iconv.h)
mark_as_advanced(ICONV_INCLUDE_DIRS)
find_library(ICONV_LIBRARIES NAMES libiconv libiconv-2 c)
find_library(ICONV_LIBRARIES NAMES libiconv libiconv-2 iconv)
mark_as_advanced(ICONV_LIBRARIES)

set(ICONV_FOUND FALSE)
Expand All @@ -27,6 +27,7 @@ set (SOURCES
set(STRING_ENCODING_TYPE "ICONV" CACHE STRING "Set the way strings have to be encoded (ICONV|NONE|...)")

add_library (${PROJECT_NAME} SHARED ${HEADERS} ${SOURCES})
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "kaitai/kaitaistream.h;kaitai/kaitaistruct.h")

if (ZLIB_FOUND)
target_include_directories(${PROJECT_NAME} PRIVATE ${ZLIB_INCLUDE_DIRS})
Expand All @@ -53,5 +54,6 @@ if (WIN32)
else()
install (TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include/kaitai
)
endif()

0 comments on commit e0f15f9

Please sign in to comment.