Find only Lua 5.2
This commit is contained in:
parent
12cf10a35c
commit
f05141f1f7
2 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ project(RPGEDIT CXX)
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(SDL2 REQUIRED sdl2 SDL2_image)
|
pkg_check_modules(SDL2 REQUIRED sdl2 SDL2_image)
|
||||||
pkg_check_modules(LUA REQUIRED lua>=5.2)
|
|
||||||
|
|
||||||
|
find_package(Lua 5.2 EXACT REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
include_directories(${SDL2_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS})
|
include_directories(${SDL2_INCLUDE_DIRS} ${LUA_INCLUDE_DIR})
|
||||||
link_directories(${SDL2_LIBRARY_DIRS} ${LUA_LIBRARY_DIRS})
|
link_directories(${SDL2_LIBRARY_DIRS})
|
||||||
|
|
||||||
add_executable(rpgedit
|
add_executable(rpgedit
|
||||||
rpgedit.cpp
|
rpgedit.cpp
|
||||||
|
@ -10,6 +10,6 @@ add_executable(rpgedit
|
||||||
view/MapView.cpp
|
view/MapView.cpp
|
||||||
view/SpriteCache.cpp
|
view/SpriteCache.cpp
|
||||||
)
|
)
|
||||||
set_target_properties(rpgedit PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall ${SDL2_CFLAGS_OTHER} ${LUA_CFLAGS_OTHER}")
|
set_target_properties(rpgedit PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall ${SDL2_CFLAGS_OTHER}")
|
||||||
set_target_properties(rpgedit PROPERTIES LINK_FLAGS "${SDL2_LDFLAGS_OTHER} ${LUA_LDFLAGS_OTHER}")
|
set_target_properties(rpgedit PROPERTIES LINK_FLAGS "${SDL2_LDFLAGS_OTHER}")
|
||||||
target_link_libraries(rpgedit ${SDL2_LIBRARIES} ${LUA_LIBRARIES})
|
target_link_libraries(rpgedit ${SDL2_LIBRARIES} ${LUA_LIBRARIES})
|
||||||
|
|
Reference in a new issue