source: CLRX/CLRadeonExtender/trunk/amdasm/CMakeLists.txt @ 4135

Last change on this file since 4135 was 4135, checked in by matszpk, 6 months ago

CLRadeonExtender: Asm: Move GCN encoding and decoding stuff to separate source codes.

  • Property svn:mime-type set to text/plain
File size: 2.2 KB
Line 
1####
2#  CLRadeonExtender - Unofficial OpenCL Radeon Extensions Library
3#  Copyright (C) 2014-2018 Mateusz Szpakowski
4#
5#  This library is free software; you can redistribute it and/or
6#  modify it under the terms of the GNU Lesser General Public
7#  License as published by the Free Software Foundation; either
8#  version 2.1 of the License, or (at your option) any later version.
9#
10#  This library is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13#  Lesser General Public License for more details.
14#
15#  You should have received a copy of the GNU Lesser General Public
16#  License along with this library; if not, write to the Free Software
17#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18####
19
20CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)
21
22SET(LIBAMDASMSRC
23        AsmAmdCL2Format.cpp
24        AsmAmdFormat.cpp
25        AsmExpression.cpp
26        AsmFormats.cpp
27        AsmGalliumFormat.cpp
28        AsmPseudoOps.cpp
29        AsmROCmFormat.cpp
30        AsmRegAlloc.cpp
31        AsmRegAllocLive.cpp
32        AsmRegAllocSSAData.cpp
33        AsmSource.cpp
34        Assembler.cpp
35        Disassembler.cpp
36        DisasmAmd.cpp
37        DisasmAmdCL2.cpp
38        DisasmGallium.cpp
39        DisasmROCm.cpp
40        GCNAsmEncode1.cpp
41        GCNAsmEncode2.cpp
42        GCNAsmHelpers.cpp
43        GCNAssembler.cpp
44        GCNDisasm.cpp
45        GCNDisasmDecode.cpp
46        GCNInstructions.cpp)
47
48SET(LINK_LIBRARIES CLRXAmdBin CLRXUtils)
49
50ADD_LIBRARY(CLRXAmdAsm SHARED ${LIBAMDASMSRC})
51
52TARGET_LINK_LIBRARIES(CLRXAmdAsm ${LINK_LIBRARIES})
53SET_TARGET_PROPERTIES(CLRXAmdAsm PROPERTIES VERSION ${CLRX_LIB_VERSION}
54        SOVERSION ${CLRX_MAJOR_VERSION})
55
56INSTALL(TARGETS CLRXAmdAsm LIBRARY DESTINATION ${LIB_INSTALL_DIR}
57        ARCHIVE DESTINATION ${LIB_INSTALL_DIR} RUNTIME DESTINATION bin)
58
59IF(NOT NO_STATIC)
60    ADD_LIBRARY(CLRXAmdAsmStatic STATIC ${LIBAMDASMSRC})
61    SET_TARGET_OUTNAME(CLRXAmdAsmStatic CLRXAmdAsm)
62   
63    INSTALL(TARGETS CLRXAmdAsmStatic ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
64            LIBRARY DESTINATION ${LIB_INSTALL_DIR})
65ENDIF(NOT NO_STATIC)
Note: See TracBrowser for help on using the repository browser.