Barebones CMake configuration file

This commit is contained in:
Roland Kaufmann
2012-11-14 12:45:48 +01:00
parent 9f5eff19a2
commit f675894df3

18
CMakeLists.txt Normal file
View File

@@ -0,0 +1,18 @@
# -*- mode: cmake; tab-width: 2; indent-tabs-mode: t; truncate-lines: t; compile-command: "cmake -Wdev" -*-
# vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 noexpandtab softtabstop=2 nowrap:
cmake_minimum_required (VERSION 2.8)
project (opm-core)
enable_language (CXX)
# all public header files are together with the source
set (opm-core_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}")
# put libraries in lib/
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
# find all the source code
file (GLOB_RECURSE opm-core_SOURCES "opm/*.c" "opm/*.cpp")
# create this library
include_directories (${opm-core_INCLUDE_DIRS})
add_library (opmcore SHARED ${opm-core_SOURCES})