-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (21 loc) · 944 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.28.2)
include(../sdk/config.cmake)
project(sieelf_sie_shot C)
if (APPLE)
set(CMAKE_C_LINK_FLAGS "")
endif()
include_directories("../libsie/src/include")
link_libraries(crt crt_helper c gcc m z png ft sie)
file(GLOB_RECURSE SOURCES "src/*.c")
add_executable(SieShot_ELKA ${SOURCES})
target_sdk_setup(SieShot_ELKA ELKA)
target_link_directories(SieShot_ELKA PUBLIC "../libsie/build/lib/ELKA")
target_compile_options(SieShot_ELKA BEFORE PUBLIC -std=gnu99 -Wall -Werror)
add_executable(SieShot_NSG ${SOURCES})
target_sdk_setup(SieShot_NSG NEWSGOLD)
target_link_directories(SieShot_NSG PUBLIC "../libsie/build/lib/NSG")
target_compile_options(SieShot_NSG BEFORE PUBLIC -std=gnu99 -Wall -Werror)
add_executable(SieShot_SG ${SOURCES})
target_sdk_setup(SieShot_SG SG)
target_link_directories(SieShot_SG PUBLIC "../libsie/build/lib/SG")
target_compile_options(SieShot_SG BEFORE PUBLIC -std=gnu99 -Wall -Werror)