2015-10-16 23:42:23 +00:00
|
|
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
2015-10-16 09:46:18 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(Example)
|
2015-10-16 23:42:23 +00:00
|
|
|
endif()
|
2015-10-16 09:46:18 +00:00
|
|
|
|
|
|
|
add_executable(Example
|
|
|
|
main.cpp)
|
|
|
|
|
|
|
|
if(GEKKO)
|
2015-10-16 23:42:23 +00:00
|
|
|
include_directories(${LIBOGCDIR}/include)
|
|
|
|
link_directories(${LIGOGCDIR}/lib/wii)
|
2016-03-04 23:00:12 +00:00
|
|
|
target_link_libraries(Example athena-core z wiiuse bte ogc m)
|
2019-06-12 01:58:44 +00:00
|
|
|
target_include_directories(Example PRIVATE ${LIBOGCDIR}/include)
|
|
|
|
target_link_directories(Example PRIVATE ${LIBOGCDIR}/lib/wii)
|
2015-10-16 09:46:18 +00:00
|
|
|
else()
|
|
|
|
#TODO: add normal link libraries
|
|
|
|
endif()
|
|
|
|
|