Browse Source

Added Cygwin support.

merge-requests/37/head
eidheim 10 years ago
parent
commit
ce0ef4a757
  1. 4
      CMakeLists.txt
  2. 5
      src/CMakeLists.txt

4
CMakeLists.txt

@ -1,7 +1,11 @@
cmake_minimum_required (VERSION 2.8.4)
set(project_name clangmm)
project(${project_name})
if(CYGWIN)
set(library_path "/usr/bin/")
else()
set(library_path "/usr/local/lib/")
endif()
set(include_path "/usr/local/include/")
if(APPLE)

5
src/CMakeLists.txt

@ -49,6 +49,9 @@ add_library(${project_name} SHARED ${header_files} ${cc_files})
include_directories(${LIBCLANG_INCLUDE_DIRS})
target_link_libraries(${project_name} ${LIBCLANG_LIBRARIES})
if(CYGWIN)
install(TARGETS ${project_name} RUNTIME DESTINATION ${library_path})
else()
install(TARGETS ${project_name} LIBRARY DESTINATION ${library_path})
endif()
install(FILES ${header_files} DESTINATION ${include_path}/libclangmm)

Loading…
Cancel
Save