CMakeLists.txt
958 Bytes
PROJECT(maca-reanalyse)
include_directories( ${CMAKE_SOURCE_DIR} )
find_package(Toki 1.0.0 REQUIRED)
set(LIBS ${LIBS} ${Toki_LIBRARY})
find_package(Corpus2 1.0.9 REQUIRED)
set(LIBS ${LIBS} ${Corpus2_LIBRARIES})
find_package(ICU REQUIRED)
include_directories(${maca_BINARY_DIR}/include)
include_directories(${Boost_INCLUDE_DIR})
include_directories(${Corpus2_INCLUDE_DIR})
include_directories(${ICU_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})
find_package(OpenMP)
if (OPENMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${OpenMP_CXX_FLAGS}")
endif(OPENMP_FOUND)
add_executable( maca-reanalyse main.cpp )
target_link_libraries ( maca-reanalyse maca ${Boost_LIBRARIES} ${LIBS})
install(TARGETS maca-reanalyse
RUNTIME DESTINATION bin)