You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
534 B
28 lines
534 B
cmake_minimum_required(VERSION 3.7)
|
|
project(groove C CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
include_directories(src)
|
|
|
|
#set(SOURCE_FILES main.cpp)
|
|
file(
|
|
GLOB_RECURSE SOURCE_FILES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
|
|
)
|
|
|
|
file(
|
|
GLOB_RECURSE HEADER_FILES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/*.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
add_executable(groove main.cpp ${SOURCE_FILES} ${HEADER_FILES})
|
|
|
|
target_link_libraries(groove ncursesw)
|
|
|
|
install(TARGETS groove DESTINATION /usr/bin) |