diff options
| author | Aiden Woodruff <aiden.woodruff@gmail.com> | 2019-09-18 22:53:41 -0500 |
|---|---|---|
| committer | Aiden Woodruff <aiden.woodruff@gmail.com> | 2019-09-18 22:53:41 -0500 |
| commit | c94d23f56df06fdfdbdf01dd519aed53078f06c5 (patch) | |
| tree | abc5a25287550cfd84426fd2667f9f4245e5b230 /src/CMakeLists.txt | |
| parent | f64ebb50da3a74b9060f1616d05b1e25e0503798 (diff) | |
| download | life-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.txt | 9 |
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 |
| 2 | include_directories(.) | 2 | include_directories(.) |
| 3 | add_executable(life life.c life.h updatemap.c updatemap.h menus.c menus.h) | 3 | add_library(board board.c board.h) |
| 4 | target_compile_features(board PUBLIC c_function_prototypes) | ||
| 5 | if (UNIX) | ||
| 6 | # target_link_libraries(board m) | ||
| 7 | endif() | ||
| 8 | add_executable(life life.c life.h board updatemap.c updatemap.h menus.c menus.h) | ||
| 9 | add_executable(test_board test_board.c board) | ||
| 4 | target_compile_features(life PUBLIC c_function_prototypes c_variadic_macros) | 10 | target_compile_features(life PUBLIC c_function_prototypes c_variadic_macros) |
| 11 | target_compile_features(test_board PRIVATE c_std_99) | ||
| 5 | target_include_directories(life PRIVATE "${CURSES_INCLUDE_DIRS}") | 12 | target_include_directories(life PRIVATE "${CURSES_INCLUDE_DIRS}") |
| 6 | target_link_libraries(life "${CURSES_LIBRARIES}") | 13 | target_link_libraries(life "${CURSES_LIBRARIES}") |
