Skip to content

Commit

Permalink
在CMakeLists中添加一项config,使得自动生成ltp_test的配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Mar 18, 2013
1 parent e2d4b62 commit da646ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
SET(SOURCE ${PROJECT_SOURCE_DIR}/src)
SET(THIRDPARTY ${PROJECT_SOURCE_DIR}/thirdparty)

SET(CONFIGURE_DIR ${PROJECT_SOURCE_DIR}/conf)
SET(DATA_DIR ${PROJECT_SOURCE_DIR}/ltp_data)

ADD_SUBDIRECTORY(thirdparty)
ADD_SUBDIRECTORY(src)

CONFIGURE_FILE(
${SOURCE}/test/ltp_all_modules.conf
${CONFIGURE_DIR}/ltp_all_modules.conf.in
${EXECUTABLE_OUTPUT_PATH}/ltp_all_modules.conf)
5 changes: 5 additions & 0 deletions conf/ltp_all_modules.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#LTP data file path

LTP_dataFolder=${DATA_DIR}

#--------------------------------#

0 comments on commit da646ce

Please sign in to comment.