From 44324ba5d6cac01048cc5cbecbff255ee56f2fc0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Mar 2015 16:13:11 -0400 Subject: Wrote simple factory to read map and entity data from XML files --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b28397..e86cd95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ find_package(GLEW REQUIRED) find_package(GLFW REQUIRED) find_package(portaudio REQUIRED) find_package(libsndfile REQUIRED) +find_package(libxml2 REQUIRED) set(ALL_LIBS ${OPENGL_LIBRARY} @@ -34,10 +35,15 @@ set(ALL_LIBS ${GLFW_LIBRARY} ${PORTAUDIO_LIBRARIES} ${LIBSNDFILE_LIBRARY} + ${LIBXML2_LIBRARIES} +) + +include_directories( + ${LIBXML2_INCLUDE_DIR} ) # include_directories(${SDL2_INCLUDE_DIR}) set(CMAKE_BUILD_TYPE Debug) -add_executable(Aromatherapy src/main.cpp src/map.cpp src/renderer.cpp src/entity.cpp src/components.cpp src/game.cpp src/muxer.cpp) +add_executable(Aromatherapy src/main.cpp src/map.cpp src/renderer.cpp src/entity.cpp src/components.cpp src/game.cpp src/muxer.cpp src/entityfactory.cpp) target_link_libraries(Aromatherapy ${ALL_LIBS}) install(TARGETS Aromatherapy RUNTIME DESTINATION ${BIN_DIR}) -- cgit 1.4.1