Skip to content

Commit

Permalink
Incorporate review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
meshula authored and nickrasmussen committed Aug 8, 2018
1 parent 7d66fd2 commit 8306c3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 26 deletions.
15 changes: 2 additions & 13 deletions IlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,11 @@ ENDIF ()

SET (ILMBASE_LIBRARY_NAMES Half Iex Imath IlmThread IexMath)
FOREACH (LIBNAME ${ILMBASE_LIBRARY_NAMES})
IF (LIBNAME STREQUAL "Half")
SET(LIBNAMESUFFIX ${LIBNAME})
ELSE()
SET(LIBNAMESUFFIX ${LIBNAME}${ILMBASE_LIBSUFFIX})
ENDIF()
SET_TARGET_PROPERTIES ( ${LIBNAME}
PROPERTIES
VERSION 12.0.0
SOVERSION 12
OUTPUT_NAME "${LIBNAMESUFFIX}"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${RUNTIME_DIR}"
ARCHIVE_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/${RUNTIME_DIR}"
OUTPUT_NAME "${LIBNAME}${ILMBASE_LIBSUFFIX}"
)
ENDFOREACH()

Expand Down Expand Up @@ -234,7 +223,7 @@ OpenEXR_includedir=\${prefix}/include/OpenEXR
Name: IlmBase
Description: Base math and exception libraries
Version: ${ILMBASE_VERSION}
Libs: -L\${libdir} -lImath${ILMBASE_LIBSUFFIX} -lIexMath${ILMBASE_LIBSUFFIX} -lHalf -lIex${ILMBASE_LIBSUFFIX} -lIlmThread${ILMBASE_LIBSUFFIX} -pthread
Libs: -L\${libdir} -lImath${ILMBASE_LIBSUFFIX} -lIexMath${ILMBASE_LIBSUFFIX} -lHalf${ILMBASE_LIBSUFFIX} -lIex${ILMBASE_LIBSUFFIX} -lIlmThread${ILMBASE_LIBSUFFIX} -pthread
Cflags: -pthread -I\${OpenEXR_includedir}
")

Expand Down
2 changes: 1 addition & 1 deletion IlmBase/Half/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ADD_LIBRARY ( Half ${LIB_TYPE}
ADD_DEPENDENCIES ( Half toFloat eLut )

INSTALL ( TARGETS
HALF
Half
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION ${RUNTIME_DIR}
Expand Down
7 changes: 1 addition & 6 deletions IlmBase/HalfTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,4 @@ ADD_EXECUTABLE ( HalfTest

TARGET_LINK_LIBRARIES ( HalfTest Half )

INSTALL ( TARGETS
HalfTest
RUNTIME DESTINATION bin
)

ADD_TEST ( TestHalf HalfTest )
ADD_TEST ( TestHalf HalfTest )
6 changes: 0 additions & 6 deletions IlmBase/ImathTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ ADD_EXECUTABLE ( ImathTest
testVec.cpp
)

INSTALL ( TARGETS
ImathTest
RUNTIME DESTINATION bin
)


ADD_TEST ( TestImath ImathTest )
TARGET_LINK_LIBRARIES ( ImathTest Imath Iex )

0 comments on commit 8306c3c

Please sign in to comment.