2010-02-28 14:51:17 +01:00
|
|
|
# We probably support older versions than this.
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
# Local files
|
|
|
|
set(BSA bsa/bsa_archive.cpp bsa/bsa_file.cpp)
|
|
|
|
set(NIF nif/nif_file.cpp nifogre/ogre_nif_loader.cpp)
|
|
|
|
set(TOOLS tools/stringops.cpp)
|
|
|
|
set(MANGLE_VFS mangle/vfs/servers/ogre_vfs.cpp)
|
|
|
|
set(GAME game/main.cpp)
|
|
|
|
|
|
|
|
# Dependencies
|
2010-03-01 14:39:38 +01:00
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(OGRE REQUIRED OGRE)
|
|
|
|
include_directories(${OGRE_INCLUDE_DIRS})
|
2010-02-28 14:51:17 +01:00
|
|
|
|
|
|
|
# Main executable
|
|
|
|
add_executable(openmw ${BSA} ${TOOLS} ${GAME})
|
2010-03-01 14:39:38 +01:00
|
|
|
target_link_libraries(openmw ${OGRE_LIBRARIES})
|