diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-16 09:44:09 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-16 09:44:09 +0200 |
commit | c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae (patch) | |
tree | b1b54ce532d2e61e1f26de8f1b05bad41313f56c /cmake-e/CMakeLists.txt | |
parent | be86ef338359ae09a38e8b87694350ef6ac84ff8 (diff) | |
download | skeletons-c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae.zip skeletons-c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae.tar.gz |
ecmake -> cmake-e
Diffstat (limited to 'cmake-e/CMakeLists.txt')
-rw-r--r-- | cmake-e/CMakeLists.txt | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/cmake-e/CMakeLists.txt b/cmake-e/CMakeLists.txt new file mode 100644 index 0000000..103665b --- /dev/null +++ b/cmake-e/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required(VERSION 2.6) +project(ecmake) +set(ECMAKE_VERSION_MAJOR 0) +set(ECMAKE_VERSION_MINOR 1) +set(ECMAKE_VERSION_MICRO 0) +set(ECMAKE_VERSION ${ECMAKE_VERSION_MAJOR}.${ECMAKE_VERSION_MINOR}.${ECMAKE_VERSION_MICRO}) + +set(PACKAGE ${CMAKE_PROJECT_NAME}) +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") + +include_directories ("${PROJECT_BINARY_DIR}") + +find_package(Eina REQUIRED) +find_package(Evas REQUIRED) +find_package(Elementary REQUIRED) + +# likely put this into an FindCompilerAttribute.cmake: +INCLUDE(CheckCSourceCompiles) +SET(HAVE___ATTRIBUTE__) +CHECK_C_SOURCE_COMPILES( + "void foo (int bar __attribute__((unused)) ) { } + static void baz (void) __attribute__((unused)); + static void baz (void) { } + int main(){} + " HAVE___ATTRIBUTE__ + ) + +ADD_DEFINITIONS(-DPACKAGE_BIN_DIR="${CMAKE_INSTALL_PREFIX}/bin" + -DPACKAGE_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}" + -DPACKAGE_LIB_DIR="${CMAKE_INSTALL_PREFIX}/lib") + +ADD_DEFINITIONS(-DHAVE_CONFIG_H) + +configure_file ( + "${PROJECT_SOURCE_DIR}/cmakeconfig.h.in" + "${PROJECT_BINARY_DIR}/config.h" + ) + +include(EFLCheck) + +add_subdirectory(lib) +add_subdirectory(examples/hello) + +#add_subdirectory(tests EXCLUDE_FROM_ALL) + |