2019-11-02 19:19:18 +00:00
|
|
|
include(FindPkgConfig)
|
2017-10-10 09:26:08 +01:00
|
|
|
|
2021-01-12 12:52:26 +00:00
|
|
|
set(SOURCE_FILES
|
2017-10-10 09:26:08 +01:00
|
|
|
main.cpp
|
|
|
|
world.cpp
|
|
|
|
colors.cpp
|
|
|
|
evdevpaddle.cpp
|
|
|
|
nframe.cpp
|
|
|
|
asciiart.cpp
|
|
|
|
)
|
|
|
|
|
2021-01-12 12:52:26 +00:00
|
|
|
set(HEADER_FILES
|
|
|
|
world.h
|
|
|
|
colors.h
|
|
|
|
evdevpaddle.h
|
|
|
|
nframe.h
|
|
|
|
asciiart.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(applen
|
|
|
|
${SOURCE_FILES}
|
|
|
|
${HEADER_FILES}
|
|
|
|
)
|
|
|
|
|
2018-02-06 17:08:50 +00:00
|
|
|
pkg_search_module(NCURSESW REQUIRED ncursesw)
|
|
|
|
pkg_search_module(LIBEVDEV REQUIRED libevdev)
|
2018-02-06 16:58:10 +00:00
|
|
|
|
|
|
|
target_include_directories(applen PRIVATE
|
|
|
|
${NCURSESW_INCLUDE_DIRS}
|
2018-02-06 17:08:50 +00:00
|
|
|
${LIBEVDEV_INCLUDE_DIRS}
|
2019-11-02 19:19:18 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2018-02-06 16:58:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_options(applen PRIVATE
|
|
|
|
${NCURSESW_CFLAGS_OTHER}
|
2018-02-06 17:08:50 +00:00
|
|
|
${LIBEVDEV_CFLAGS_OTHER}
|
2017-10-10 09:26:08 +01:00
|
|
|
)
|
2019-11-02 19:19:18 +00:00
|
|
|
|
2019-12-01 15:22:17 +00:00
|
|
|
target_link_libraries(applen PRIVATE
|
2019-11-02 19:19:18 +00:00
|
|
|
${NCURSESW_LIBRARIES}
|
|
|
|
${LIBEVDEV_LIBRARIES}
|
|
|
|
appleii
|
2020-10-09 19:13:42 +01:00
|
|
|
common2
|
2019-11-02 19:19:18 +00:00
|
|
|
)
|
2019-11-03 10:21:02 +00:00
|
|
|
|
2020-10-06 20:58:43 +01:00
|
|
|
install(TARGETS applen
|
|
|
|
DESTINATION bin)
|