You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
545 B
CMake
19 lines
545 B
CMake
# 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
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(OGRE REQUIRED OGRE)
|
|
include_directories(${OGRE_INCLUDE_DIRS})
|
|
|
|
# Main executable
|
|
add_executable(openmw ${BSA} ${TOOLS} ${GAME})
|
|
target_link_libraries(openmw ${OGRE_LIBRARIES})
|