-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code and cmake rules to allow source to compile into shared lib…
…rary - This built successfully on Linux. - There are CMake rules added that should be cleaned. - The library wont compile on Linux because I added a unistd.h; need to figure out how to best chdir on Windows [#80310170]
- Loading branch information
1 parent
27b6d52
commit b83cf8f
Showing
9 changed files
with
115 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ set(CPACK_PACKAGE_CONTACT "Kyle Benne <[email protected]>") | |
option( BUILD_PACKAGE "Build package" OFF ) | ||
option( BUILD_TESTING "Build testing targets" OFF ) | ||
option( BUILD_FORTRAN "Build Fortran stuff" OFF ) | ||
option( MAKE_ENERGYPLUS_LIBRARY "Make EnergyPlus into a shared library instead of an executable" OFF ) | ||
|
||
if( BUILD_TESTING ) | ||
option( ENABLE_REGRESSION_TESTING "Enable Regression Tests" OFF ) | ||
|
@@ -122,6 +123,11 @@ if( BUILD_FORTRAN ) | |
cmake_add_fortran_subdirectory(src/ConvertESOMTR PROJECT ConvertESOMTR NO_EXTERNAL_INSTALL ) | ||
endif() | ||
|
||
if ( MAKE_ENERGYPLUS_LIBRARY ) | ||
ADD_DEFINITIONS( " -DMAKE_ENERGYPLUS_LIBRARY " ) | ||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") | ||
endif() | ||
|
||
configure_file( idd/Energy+.idd.in "${CMAKE_BINARY_DIR}/Energy+.idd" ) | ||
|
||
if( BUILD_PACKAGE ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b83cf8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80310170-EnergyPlusLibrary (Myoldmopar) - x86_64-MacOS-10.9-clang: OK (939 of 956 tests passed)
b83cf8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80310170-EnergyPlusLibrary (Myoldmopar) - i386-Windows-7-VisualStudio-12: OK (955 of 956 tests passed)
b83cf8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80310170-EnergyPlusLibrary (Myoldmopar) - x86_64-MacOS-10.9-clang-Debug: OK (934 of 956 tests passed)
b83cf8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80310170-EnergyPlusLibrary (Myoldmopar) - Win64-Windows-7-VisualStudio-12: OK (955 of 956 tests passed)