aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAiden Woodruff <aiden.woodruff@gmail.com>2019-09-18 22:53:41 -0500
committerAiden Woodruff <aiden.woodruff@gmail.com>2019-09-18 22:53:41 -0500
commitc94d23f56df06fdfdbdf01dd519aed53078f06c5 (patch)
treeabc5a25287550cfd84426fd2667f9f4245e5b230 /src/CMakeLists.txt
parentf64ebb50da3a74b9060f1616d05b1e25e0503798 (diff)
downloadlife-c94d23f56df06fdfdbdf01dd519aed53078f06c5.tar.gz
life-c94d23f56df06fdfdbdf01dd519aed53078f06c5.tar.bz2
life-c94d23f56df06fdfdbdf01dd519aed53078f06c5.zip
Added board library to decrease size of boardmaps
Only allocate two maps, instead of another per generation
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3b216bf..47d993f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,6 +1,13 @@
1# Makefile stuff 1# Makefile stuff
2include_directories(.) 2include_directories(.)
3add_executable(life life.c life.h updatemap.c updatemap.h menus.c menus.h) 3add_library(board board.c board.h)
4target_compile_features(board PUBLIC c_function_prototypes)
5if (UNIX)
6# target_link_libraries(board m)
7endif()
8add_executable(life life.c life.h board updatemap.c updatemap.h menus.c menus.h)
9add_executable(test_board test_board.c board)
4target_compile_features(life PUBLIC c_function_prototypes c_variadic_macros) 10target_compile_features(life PUBLIC c_function_prototypes c_variadic_macros)
11target_compile_features(test_board PRIVATE c_std_99)
5target_include_directories(life PRIVATE "${CURSES_INCLUDE_DIRS}") 12target_include_directories(life PRIVATE "${CURSES_INCLUDE_DIRS}")
6target_link_libraries(life "${CURSES_LIBRARIES}") 13target_link_libraries(life "${CURSES_LIBRARIES}")