AppleWin/source/frontends/ncurses/CMakeLists.txt
Andrea Odetti a310d50da4 applen: partially better way to locate resources if application is launched from different folder.
When loading snapshot, chdir so relative paths can be found.
Ensure endwin() is called.
Use an "int" to exit the process rather than a exit().

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-12 10:24:27 +01:00

37 lines
670 B
CMake

include(FindPkgConfig)
add_executable(applen
main.cpp
world.cpp
colors.cpp
evdevpaddle.cpp
nframe.cpp
asciiart.cpp
resources.cpp
configuration.cpp
)
pkg_search_module(NCURSESW REQUIRED ncursesw)
pkg_search_module(LIBEVDEV REQUIRED libevdev)
find_package(Boost REQUIRED
COMPONENTS program_options
)
target_include_directories(applen PRIVATE
${NCURSESW_INCLUDE_DIRS}
${LIBEVDEV_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
target_compile_options(applen PRIVATE
${NCURSESW_CFLAGS_OTHER}
${LIBEVDEV_CFLAGS_OTHER}
)
target_link_libraries(applen PRIVATE
${NCURSESW_LIBRARIES}
${LIBEVDEV_LIBRARIES}
Boost::program_options
appleii
)