Skip to content

Commit

Permalink
Add a CMake based build system
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Oct 31, 2010
1 parent 392fb28 commit fdcb562
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,19 @@ build/
# XCode user configuration
*.mode1v3
*.pbxuser

# XCode something or other.. not sure if it should be checked in
charsetdetectProj.xcconfig
charsetdetectTarget.xcconfig

# CMake generated build system
Makefile

# CMake build artifacts
lib/

# CMake junk
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
install_manifest.txt
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(charsetdetect)

INCLUDE_DIRECTORIES(. nspr-emu mozilla/extensions/universalchardet/src/base/)

FILE(GLOB charsetdetect_lib_src mozilla/extensions/universalchardet/src/base/*.cpp)
SET(charsetdetect_lib_src ${charsetdetect_lib_src} charsetdetect.cpp)
ADD_LIBRARY(charsetdetect SHARED ${charsetdetect_lib_src})

# Do not output the shared library into the root
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

INSTALL (TARGETS charsetdetect DESTINATION lib)
INSTALL (FILES charsetdetect.h DESTINATION include)

0 comments on commit fdcb562

Please sign in to comment.