Better cmake
This commit is contained in:
parent
653e88e201
commit
fdb92ef24f
|
@ -21,7 +21,7 @@ before_install:
|
|||
|
||||
install:
|
||||
- sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
|
||||
- sudo apt-get install -y cmake cmake-data check lua5.3 liblua5.3-dev
|
||||
- sudo apt-get install -y cmake cmake-data check lua5.2 liblua5.2-dev
|
||||
|
||||
#g++6
|
||||
- if [ "$CXX" = "g++" ]; then sudo apt-get install -y g++-6; fi
|
||||
|
|
|
@ -4,8 +4,14 @@ SET(CMAKE_COLOR_MAKEFILE ON)
|
|||
|
||||
project(breakhack C)
|
||||
|
||||
include(FindLua)
|
||||
|
||||
add_subdirectory(linkedlist)
|
||||
include_directories(linkedlist)
|
||||
|
||||
include_directories(linkedlist
|
||||
${LUA_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
add_definitions("-Wall")
|
||||
|
||||
# PROGRAMS:
|
||||
|
@ -24,13 +30,13 @@ add_executable(breakhack
|
|||
|
||||
target_link_libraries(breakhack
|
||||
linkedlist
|
||||
${LUA_LIBRARIES}
|
||||
-lSDL2
|
||||
-lSDL2_image
|
||||
-lSDL2_mixer
|
||||
-lSDL2_ttf
|
||||
-lX11
|
||||
-lXrandr
|
||||
-llua
|
||||
)
|
||||
|
||||
# TESTS:
|
||||
|
|
Loading…
Reference in New Issue