cmake_minimum_required (VERSION 2.8)
project (maa)
+FIND_PACKAGE (Threads)
+
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
git_describe (VERSION "--tags")
if ("x_${VERSION}" STREQUAL "x_GIT-NOTFOUND")
message (WARNING " - Install git to compile a production libmaa!")
- set (VERSION "v0.2.0-dirty")
+ set (VERSION "v0.2.5-dirty")
endif ()
message (INFO " - MAA Version ${VERSION}")
set (maa_VERSION_PATCH ${VERSION_PATCH})
set (maa_VERSION_STRING ${maa_VERSION_MAJOR}.${maa_VERSION_MINOR}.${maa_VERSION_PATCH})
-set (SWIG_EXECUTABLE /usr/bin/swig)
-find_package (SWIG REQUIRED)
-include (${SWIG_USE_FILE})
-
set (CMAKE_SWIG_FLAGS "")
-option (test "Build all tests." OFF)
+option (GTEST "Build all gtests." OFF)
if (test)
enable_testing ()