mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
Tweak main CMakeLists
This commit is contained in:
parent
18c205f596
commit
8ab4daf669
@ -2,7 +2,9 @@ PROJECT(CPPJIEBA)
|
||||
|
||||
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
|
||||
|
||||
SET(CMAKE_INSTALL_PREFIX /usr)
|
||||
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
set (CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "default install path" FORCE )
|
||||
endif()
|
||||
ADD_DEFINITIONS(-std=c++0x -O3 -Wall)
|
||||
IF (DEFINED ENC)
|
||||
ADD_DEFINITIONS(-DCPPJIEBA_${ENC})
|
||||
@ -10,8 +12,12 @@ ENDIF()
|
||||
#ADD_DEFINITIONS(-DNO_FILTER)
|
||||
ADD_SUBDIRECTORY(src)
|
||||
ADD_SUBDIRECTORY(dict)
|
||||
|
||||
if (!${APPLE})
|
||||
ADD_SUBDIRECTORY(script)
|
||||
ADD_SUBDIRECTORY(conf)
|
||||
endif()
|
||||
|
||||
ADD_SUBDIRECTORY(test)
|
||||
|
||||
ENABLE_TESTING()
|
||||
|
Loading…
x
Reference in New Issue
Block a user