Skip to content

Commit 327a2eb

Browse files
committed
cmake exe names
add homebrew mode add install for homebrew formula bug
1 parent b191467 commit 327a2eb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ project(THULAC)
44
file(GLOB SOURCE_FILES include/*.h)
55
include_directories(${PROJECT_SOURCE_DIR}/include)
66

7+
option(THULAC_BUILD_TARGET "Choose which target to build" "all")
78

89
add_executable(thulac src/thulac.cc ${SOURCE_FILES})
9-
add_executable(train src/train_c.cc ${SOURCE_FILES})
10-
add_executable(test_case test/test_case.cpp ${SOURCE_FILES})
10+
add_executable(thulac_train src/train_c.cc ${SOURCE_FILES})
11+
add_executable(thulac_test_case test/test_case.cpp ${SOURCE_FILES})
1112
add_executable(thulac_test src/thulac_test.cc ${SOURCE_FILES})
13+
14+
install( thulac
15+
TARGETS
16+
RUNTIME DESTINATION bin/
17+
LIBRARY DESTINATION lib/
18+
ARCHIVE DESTINATION lib/)
19+
20+
21+

0 commit comments

Comments
 (0)