-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
23 lines (16 loc) · 748 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
23 lines (16 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.13.4)
project(wordsmith)
include_directories(${CMAKE_SOURCE_DIR}/src)
file(GLOB SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
add_definitions(-DPROG_NAME="${PROJECT_NAME}")
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
find_package(LibZip REQUIRED)
include_directories(${LIBZIP_INCLUDE_DIRS})
find_package(LibMagic REQUIRED)
include_directories(${LIBMAGIC_INCLUDE_DIRS})
add_executable(wordsmith ${SOURCES})
target_link_libraries(wordsmith ${CURSES_LIBRARIES} ${LIBZIP_LIBRARIES} ${LIBMAGIC_LIBRARIES})
install(TARGETS wordsmith DESTINATION bin)