should work on systems where tinfo is separate from ncurses now
This commit is contained in:
parent
34e98c6a97
commit
8c561778ee
@ -8,12 +8,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
find_package(Curses REQUIRED)
|
||||
find_package(Tinfo QUIET)
|
||||
set(INCLUDE_PATH ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
add_executable (roflcat src/roflcat.cpp src/cmd.cpp)
|
||||
target_include_directories(roflcat PUBLIC ${INCLUDE_PATH})
|
||||
target_include_directories(roflcat PUBLIC ${CURSES_INCLUDE_DIRS})
|
||||
target_link_libraries(roflcat PRIVATE ${CURSES_LIBRARIES})
|
||||
target_include_directories(roflcat PUBLIC ${CURSES_INCLUDE_DIRS} ${TINFO_INCLUDE_DIRS})
|
||||
target_link_libraries(roflcat PRIVATE ${CURSES_LIBRARIES} ${TINFO_LIBRARIES})
|
||||
install(TARGETS roflcat RUNTIME DESTINATION bin)
|
||||
|
||||
#uninstall target
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user