#### # CLRadeonExtender - Unofficial OpenCL Radeon Extensions Library # Copyright (C) 2014-2017 Mateusz Szpakowski # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #### CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1) SET(LIBAMDASMSRC AsmAmdCL2Format.cpp AsmAmdFormat.cpp AsmExpression.cpp AsmFormats.cpp AsmGalliumFormat.cpp AsmPseudoOps.cpp AsmROCmFormat.cpp AsmRegAlloc.cpp AsmSource.cpp Assembler.cpp Disassembler.cpp DisasmAmd.cpp DisasmAmdCL2.cpp DisasmGallium.cpp DisasmROCm.cpp GCNAsmHelpers.cpp GCNAssembler.cpp GCNDisasm.cpp GCNInstructions.cpp) SET(LINK_LIBRARIES CLRXAmdBin CLRXUtils) ADD_LIBRARY(CLRXAmdAsm SHARED ${LIBAMDASMSRC}) TARGET_LINK_LIBRARIES(CLRXAmdAsm ${LINK_LIBRARIES}) SET_TARGET_PROPERTIES(CLRXAmdAsm PROPERTIES VERSION ${CLRX_LIB_VERSION} SOVERSION ${CLRX_MAJOR_VERSION}) INSTALL(TARGETS CLRXAmdAsm LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR} RUNTIME DESTINATION bin) IF(NOT NO_STATIC) ADD_LIBRARY(CLRXAmdAsmStatic STATIC ${LIBAMDASMSRC}) SET_TARGET_OUTNAME(CLRXAmdAsmStatic CLRXAmdAsm) INSTALL(TARGETS CLRXAmdAsmStatic ARCHIVE DESTINATION ${LIB_INSTALL_DIR} LIBRARY DESTINATION ${LIB_INSTALL_DIR}) ENDIF(NOT NO_STATIC)