summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 46eb1a2a86d05c9d5dd04d06d4657d363d39e6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include_directories(${SDL2_INCLUDE_DIRS} ${LUA_INCLUDE_DIR})
link_directories(${SDL2_LIBRARY_DIRS})

add_executable(rpgedit
  rpgedit.cpp
  control/MapContext.cpp
  control/RPGEdit.cpp
  control/ScriptContext.cpp
  model/Map.cpp
  model/Scriptable.cpp
  view/MapView.cpp
  view/SpriteCache.cpp
)
set_target_properties(rpgedit PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall ${SDL2_CFLAGS_OTHER}")
set_target_properties(rpgedit PROPERTIES LINK_FLAGS "${SDL2_LDFLAGS_OTHER}")
target_link_libraries(rpgedit ${SDL2_LIBRARIES} ${LUA_LIBRARIES})