Private
Public Access
2
0

cmake: make maa a proper dynamic library and install it correctly

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-04-23 17:28:14 +01:00
parent 42446812c5
commit d1ceeae4e3
3 changed files with 44 additions and 9 deletions

View File

@@ -1,13 +1,21 @@
cmake_minimum_required (VERSION 2.8)
project (maa)
set(SWIG_EXECUTABLE /usr/bin/swig)
FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
SET(CMAKE_SWIG_FLAGS "")
set(maa_VERSION_MAJOR 0)
set(maa_VERSION_MINOR 1)
set(maa_VERSION_PATCH 1)
set(maa_VERSION_STRING ${maa_VERSION_MAJOR}.${maa_VERSION_MINOR}.${maa_VERSION_PATCH})
option(test "Build all tests." OFF)
set (SWIG_EXECUTABLE /usr/bin/swig)
FIND_PACKAGE (SWIG REQUIRED)
INCLUDE (${SWIG_USE_FILE})
SET (CMAKE_SWIG_FLAGS "")
option (test "Build all tests." OFF)
add_subdirectory (src)
add_subdirectory (examples)
@@ -15,4 +23,4 @@ add_subdirectory (examples)
if (test)
enable_testing ()
add_subdirectory (tests)
endif()
endif ()