diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 88408a9..da3aa68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ include(DefineCMakeDefaults) include(DefineCompilerFlags) include(DefinePlatformDefaults) -project(cmocka VERSION 1.1.3 LANGUAGES C) +project(cmocka VERSION 1.1.5 LANGUAGES C) # global needed variables set(APPLICATION_NAME ${PROJECT_NAME}) @@ -27,7 +27,7 @@ set(APPLICATION_NAME ${PROJECT_NAME}) # Increment AGE. Set REVISION to 0 # If the source code was changed, but there were no interface changes: # Increment REVISION. -set(LIBRARY_VERSION "0.5.1") +set(LIBRARY_VERSION "0.7.0") set(LIBRARY_SOVERSION "0") # include cmake files @@ -51,16 +51,18 @@ if (MINGW) endif (MINGW) # check subdirectories -add_subdirectory(doc) add_subdirectory(include) add_subdirectory(src) +add_subdirectory(doc) include(AddCMockaTest) if (UNIT_TESTING) add_subdirectory(tests) endif (UNIT_TESTING) -add_subdirectory(example) +if (WITH_EXAMPLES) + add_subdirectory(example) +endif () # pkg-config file configure_file(cmocka.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/cmocka.pc) @@ -74,7 +76,11 @@ install( ) # cmake config files -set(CMOCKA_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}) +if (WIN32) + set(CMOCKA_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}) +else() + set(CMOCKA_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}) +endif() set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE INTERNAL "") set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE INTERNAL "") |