2019-11-02 19:19:18 +00:00
|
|
|
include(FindPkgConfig)
|
2017-10-10 09:26:08 +01:00
|
|
|
|
|
|
|
add_executable(applen
|
|
|
|
main.cpp
|
|
|
|
world.cpp
|
|
|
|
colors.cpp
|
|
|
|
evdevpaddle.cpp
|
|
|
|
nframe.cpp
|
|
|
|
asciiart.cpp
|
|
|
|
resources.cpp
|
2017-10-10 14:26:40 +01:00
|
|
|
configuration.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
)
|
|
|
|
|
2018-02-06 17:08:50 +00:00
|
|
|
pkg_search_module(NCURSESW REQUIRED ncursesw)
|
|
|
|
pkg_search_module(LIBEVDEV REQUIRED libevdev)
|
2019-11-02 19:19:18 +00:00
|
|
|
find_package(Boost REQUIRED
|
|
|
|
COMPONENTS program_options
|
|
|
|
)
|
2018-02-06 16:58:10 +00:00
|
|
|
|
|
|
|
target_include_directories(applen PRIVATE
|
2020-07-12 10:26:17 +01:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-02-06 16:58:10 +00:00
|
|
|
${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}
|
|
|
|
Boost::program_options
|
|
|
|
appleii
|
|
|
|
)
|
2019-11-03 10:21:02 +00:00
|
|
|
|
2020-07-12 10:26:17 +01:00
|
|
|
file(RELATIVE_PATH RESOURCE_PATH ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/resource)
|
|
|
|
configure_file(config.h.in config.h)
|