Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix `make test' in a clean system

  • Loading branch information...
commit e299154d7e43f793e21fbfdb8a7735215f84b2ed 1 parent 49f7698
Kan-Ru Chen authored December 17, 2011
1  CMakeLists.txt
@@ -20,6 +20,7 @@
20 20
 cmake_minimum_required(VERSION 2.8)
21 21
 set (PACKAGE_NAME opencc)
22 22
 project (${PACKAGE_NAME} C)
  23
+include (CTest)
23 24
 enable_testing()
24 25
 
25 26
 ######## Package information
8  data/CMakeLists.txt
@@ -92,4 +92,10 @@ install(
92 92
 		${CHINA_DICT_FILES}
93 93
 	DESTINATION
94 94
 		${DIR_SHARE_OPENCC}
95  
-)
  95
+)
  96
+
  97
+if (BUILD_TESTING)
  98
+	foreach (DICT ${TAIWAN_DICT_FILES} ${CHINA_DICT_FILES})
  99
+		configure_file(${DICT} ${PROJECT_BINARY_DIR}/data COPYONLY)
  100
+	endforeach (DICT)
  101
+endif (BUILD_TESTING)

0 notes on commit e299154

Please sign in to comment.
Something went wrong with that request. Please try again.