-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
62 lines (36 loc) · 1.58 KB
/
Copy pathCMakeLists.txt
File metadata and controls
62 lines (36 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
project(csl)
cmake_minimum_required(VERSION 2.6)
ADD_CUSTOM_TARGET(MinDic DEPENDS csl compileMD lookupMD extractMD )
ADD_CUSTOM_TARGET(FBDic DEPENDS csl compileFBDic lookupFBDic extractFBDic )
#ADD_CUSTOM_TARGET(DictSearch DEPENDS csl MinDic FBDic)
ADD_CUSTOM_TARGET(Vaam DEPENDS csl MinDic FBDic )
# use, i.e. don't skip the full RPATH for the build tree
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
# when building, don't use the install RPATH already
# (but later on when installing)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
# the RPATH to be used when installing
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
#SET(CMAKE_VERBOSE_MAKEFILE true)
SET( COMPILE_DEFINITIONS ${COMPILE_DEFINITIONS} CSL_ROOTDIR='"${csl_SOURCE_DIR}/"' )
ENABLE_TESTING()
include_directories (${csl_SOURCE_DIR})
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
FIND_PACKAGE( CPPUNIT )
IF( CPPUNIT_FOUND )
include_directories( ${CPPUNIT_INCLUDE_DIR} )
ENDIF( CPPUNIT_FOUND )
#INCLUDE(FindJNI) # FINDS THE FOLLOWING VARIABLES
# JAVA_AWT_LIB_PATH = the path to the jawt library
# JAVA_JVM_LIB_PATH = the path to the jvm library
# JAVA_INCLUDE_PATH = the include path to jni.h
# JAVA_INCLUDE_PATH2 = the include path to jni_md.h
# JAVA_AWT_INCLUDE_PATH = the include path to jawt.h
#INCLUDE_DIRECTORIES( "." ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2} )
find_package(JNI)
include_directories( ${JNI_INCLUDE_DIRS} )
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
add_subdirectory(csl)
add_subdirectory(JNI)
add_subdirectory(tools)