mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Added reusable object collection to library compilation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 2.8.8)
|
||||
|
||||
|
||||
if (DEFINED COOLPROP_INSTALL_PREFIX)
|
||||
@@ -253,6 +253,7 @@ IF ( COOLPROP_STATIC_LIBRARY OR COOLPROP_SHARED_LIBRARY )
|
||||
#
|
||||
# Project name
|
||||
SET (LIB_NAME ${COOLPROP_LIBRARY_NAME})
|
||||
ADD_LIBRARY("${LIB_NAME}Objects" OBJECT ${APP_SOURCES})
|
||||
#
|
||||
LIST(APPEND APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${COOLPROP_LIBRARY_SOURCE}")
|
||||
# Static or shared?
|
||||
|
||||
Reference in New Issue
Block a user