Skip to content

Commit

Permalink
- improve build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Oct 3, 2013
1 parent 46fffbf commit 4c0943c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
19 changes: 15 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
####################################################################
#
# CMake Build Script for spatial simulator from akira
# CMake Build Script for SBML Spatial, a UI for the
# spatial simulator from Akira
#
# $Author$
# $Id$
# $HeadURL$
# Frank T. Bergmann
#

cmake_minimum_required(VERSION 2.6)
Expand All @@ -14,10 +13,13 @@ set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(CPACK_SOURCE_GENERATOR "ZIP")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/license.txt")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/readme.md")
set(CPACK_SOURCE_PACKAGE_FILE_NAME
"${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_IGNORE_FILES
"aa;aa.zip;screenshots;.DS_STORE;testmodels/.DS_Store;/build/;/.bzr/;~$;${CPACK_SOURCE_IGNORE_FILES}")
set(CPACK_NSIS_CREATE_ICONS "CreateShortCut '\$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\SBML Spatial.lnk' '\$INSTDIR\\\\bin\\\\SpatialUI.exe'")
include(CPack)


Expand Down Expand Up @@ -58,6 +60,14 @@ else()
endif()

set(EXTRA_LIBS "" CACHE STRING "List of additional libraries to link against." )
set(EXTRA_FLAGS "" CACHE STRING "List of extra flags." )
set(EXTRA_INCLUDE "" CACHE STRING "List of include diretories." )

if (EXTRA_FLAGS)
foreach(${flag} ${EXTRA_FLAGS})
add_definitions(-D${flag})
endforeach()
endif()

option(WITH_CSHARP "Generate C# language bindings." OFF)
option(WITH_JAVA "Generate Java language bindings." OFF)
Expand Down Expand Up @@ -88,6 +98,7 @@ if(WITH_CSHARP)
endif(WITH_CSHARP)



if(WIN32 AND NOT CYGWIN)
add_definitions(-DLIBSBML_EXPORTS -DWIN32)
if(MSVC)
Expand Down
1 change: 1 addition & 0 deletions SpatialUI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ add_definitions(${QT_DEFINITIONS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR})
include_directories(${EXTRA_INCLUDE})
include_directories(../SpatialSBML)
include_directories(${LIBSBML_INCLUDE_DIR})

Expand Down
29 changes: 29 additions & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## License
This project is licensed under the BSD license:

```
Copyright (c) 2013, Frank T. Bergmann
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer. Redistributions in
binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution. THIS SOFTWARE IS
PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

```

0 comments on commit 4c0943c

Please sign in to comment.