-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
33 lines (25 loc) · 928 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
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.6)
project(rin C CXX)
add_executable(testProgress tools.c)
include(/usr/local/pspdev/psp/share/cmake/PSP.cmake)
set(CMAKE_CXX_STANDARD 11)
file(GLOB_RECURSE all_src FOLLOW_SYMLINKS
"*.h"
"*.cpp"
"*.c"
)
MACRO(HEADER_DIRECTORIES return_list)
FILE(GLOB_RECURSE new_list *.h)
SET(dir_list "")
FOREACH(file_path ${new_list})
GET_FILENAME_COMPONENT(dir_path ${file_path} PATH)
SET(dir_list ${dir_list} ${dir_path})
ENDFOREACH()
LIST(REMOVE_DUPLICATES dir_list)
SET(${return_list} ${dir_list})
ENDMACRO()
set(return_list ".")
#HEADER_DIRECTORIES(${return_list} ../pspdev/psp/sdk/include)
#include_directories(${return_list} ../pspdev/psp/sdk/include)
add_executable(rin ${all_src} tools.c tools.h menu_rewind.c menu_rewind.h menu_credits.c menu_credits.h tools.c)
set_target_properties(rin PROPERTIES LINKER_LANGUAGE CXX)