2016-12-13 04:31:48 +05:30
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
|
|
|
|
2017-12-11 05:25:03 +05:30
|
|
|
add_executable(citra
|
|
|
|
citra.cpp
|
|
|
|
citra.rc
|
|
|
|
config.cpp
|
|
|
|
config.h
|
|
|
|
default_ini.h
|
|
|
|
emu_window/emu_window_sdl2.cpp
|
|
|
|
emu_window/emu_window_sdl2.h
|
|
|
|
resource.h
|
|
|
|
)
|
2014-08-24 06:52:05 +05:30
|
|
|
|
2017-12-11 05:25:03 +05:30
|
|
|
create_target_directory_groups(citra)
|
2013-09-27 03:04:48 +05:30
|
|
|
|
2017-07-08 22:12:14 +05:30
|
|
|
target_link_libraries(citra PRIVATE common core input_common network)
|
2017-05-28 10:08:49 +05:30
|
|
|
target_link_libraries(citra PRIVATE inih glad)
|
2015-06-23 06:29:00 +05:30
|
|
|
if (MSVC)
|
2017-05-28 06:56:55 +05:30
|
|
|
target_link_libraries(citra PRIVATE getopt)
|
2015-06-23 06:29:00 +05:30
|
|
|
endif()
|
2017-05-28 10:08:49 +05:30
|
|
|
target_link_libraries(citra PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
|
2014-05-01 05:26:25 +05:30
|
|
|
|
2016-10-10 11:28:05 +05:30
|
|
|
if(UNIX AND NOT APPLE)
|
2015-07-10 00:49:02 +05:30
|
|
|
install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
2015-08-30 12:07:42 +05:30
|
|
|
endif()
|
2016-03-01 22:54:18 +05:30
|
|
|
|
|
|
|
if (MSVC)
|
2016-12-13 04:31:48 +05:30
|
|
|
include(CopyCitraSDLDeps)
|
|
|
|
copy_citra_SDL_deps(citra)
|
2016-03-01 22:54:18 +05:30
|
|
|
endif()
|