This repository has been archived on 2024-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
TrophyShot/CMakeLists.txt

36 lines
937 B
CMake
Raw Normal View History

2020-06-01 23:45:36 +03:00
cmake_minimum_required(VERSION 2.8)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
if(DEFINED ENV{DOLCESDK})
set(CMAKE_TOOLCHAIN_FILE "$ENV{DOLCESDK}/share/dolce.toolchain.cmake" CACHE PATH "toolchain file")
else()
message(FATAL_ERROR "Please define DOLCESDK to point to your SDK path!")
endif()
endif()
project(TrophyShot)
2020-06-01 23:45:36 +03:00
include("$ENV{DOLCESDK}/share/dolce.cmake" REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-q -Wall -O3 -std=gnu99")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions")
link_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
add_executable(${PROJECT_NAME}
main.c
2020-06-01 23:45:36 +03:00
)
target_link_libraries(${PROJECT_NAME}
SceLibKernel_stub
SceThreadmgr_stub
SceModulemgr_stub
taihenModuleUtils_stub
taihen_stub
2020-06-01 23:45:36 +03:00
)
dolce_create_self(${PROJECT_NAME}.suprx ${PROJECT_NAME}
UNSAFE
CONFIG ${CMAKE_SOURCE_DIR}/TrophyShot.yml
)