mirror of
https://github.com/RPCS3/rsx_program_decompiler.git
synced 2026-01-31 01:25:19 +01:00
Added CMakeLists
This commit is contained in:
3
CMakeLists.txt
Normal file
3
CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
add_subdirectory( shader_code )
|
||||
add_subdirectory( rsx_decompiler )
|
||||
|
||||
17
rsx_decompiler/CMakeLists.txt
Normal file
17
rsx_decompiler/CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
project(rsx_decompiler)
|
||||
|
||||
If(NOT SOURCE_DIR)
|
||||
SET(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
Message("-- Initializing SOURCE_DIR=${SOURCE_DIR}")
|
||||
Else()
|
||||
Message("-- Using Custom SOURCE_DIR=${SOURCE_DIR}")
|
||||
EndIf()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fexceptions")
|
||||
include_directories(${SOURCE_DIR})
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES "${SOURCE_DIR}/*.cpp")
|
||||
|
||||
add_library(${PROJECT_NAME} ${SOURCE_FILES})
|
||||
17
shader_code/CMakeLists.txt
Normal file
17
shader_code/CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
project(shader_code)
|
||||
|
||||
If(NOT SOURCE_DIR)
|
||||
SET(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
Message("-- Initializing SOURCE_DIR=${SOURCE_DIR}")
|
||||
Else()
|
||||
Message("-- Using Custom SOURCE_DIR=${SOURCE_DIR}")
|
||||
EndIf()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fexceptions")
|
||||
include_directories(${SOURCE_DIR})
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES "${SOURCE_DIR}/*.cpp")
|
||||
|
||||
add_library(${PROJECT_NAME} ${SOURCE_FILES})
|
||||
Reference in New Issue
Block a user