Skip to content

Commit

Permalink
CMakefy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Oda committed Apr 6, 2017
1 parent f8f406f commit 269e25a
Show file tree
Hide file tree
Showing 46 changed files with 71 additions and 9,641 deletions.
31 changes: 1 addition & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
*~
*.la
*.lo
*.log
*.trs
*.o
.deps
.libs
.nfs*
Makefile
Makefile.in
aclocal.m4
autom4te.cache
autoscan.log
compile
config.*
configure
depcomp
gmon.*
install-sh
libtool
ltmain.sh
missing
mydata
stamp-h1
test-driver

src/bin/mteval-corpus
src/bin/mteval-sentence
src/bin/mteval-pairwise
src/test/*_test
build

Empty file removed AUTHORS
Empty file.
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
project(mteval)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(BUILD_SHARED_LIBS ON)

# Boost configurations
if(DEFINED BOOST_ROOT OR DEFINED BOOSTROOT OR DEFINED ENV{BOOST_ROOT} OR DEFINED ENV{BOOSTROOT})
set(Boost_NO_BOOST_CMAKE ON)
set(Boost_NO_SYSTEM_PATHS ON)
set(Boost_REALPATH ON)
endif()
find_package(Boost 1.48.0 REQUIRED COMPONENTS
program_options
unit_test_framework)
MESSAGE("-- Boost include directory: " ${Boost_INCLUDE_DIRS})

include_directories(${CMAKE_SOURCE_DIR} ${Boost_INCLUDE_DIRS})

enable_testing()

add_subdirectory(bin)
add_subdirectory(mteval)
add_subdirectory(test)
Empty file removed ChangeLog
Empty file.
Loading

0 comments on commit 269e25a

Please sign in to comment.