Merge pull request #50 from CreeperMario/master

Pong: Fix build issues with CMake
This commit is contained in:
James 2017-04-08 12:13:48 +01:00 committed by GitHub
commit 6fd39535e3
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ cd wut
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=install ../
make
make install
export WUT_ROOT=$PWD/install
```

View File

@ -3,8 +3,8 @@ project(pong)
include($ENV{WUT_ROOT}/cmake/wut-toolchain.cmake)
file(GLOB_RECURSE SOURCE_FILES *.c)
file(GLOB_RECURSE HEADER_FILES *.h)
file(GLOB_RECURSE SOURCE_FILES src/*.c)
file(GLOB_RECURSE HEADER_FILES src/*.h)
add_rpx(pong ${SOURCE_FILES} ${HEADER_FILES})
target_link_libraries(pong