2016-12-13 04:31:48 +05:30
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
|
|
|
|
2014-08-24 06:52:05 +05:30
|
|
|
set(SRCS
|
2016-03-01 22:54:18 +05:30
|
|
|
emu_window/emu_window_sdl2.cpp
|
2014-08-24 06:52:05 +05:30
|
|
|
citra.cpp
|
2014-09-13 05:36:13 +05:30
|
|
|
config.cpp
|
2014-12-24 10:37:30 +05:30
|
|
|
citra.rc
|
2014-08-24 06:52:05 +05:30
|
|
|
)
|
|
|
|
set(HEADERS
|
2016-03-01 22:54:18 +05:30
|
|
|
emu_window/emu_window_sdl2.h
|
2014-09-13 05:36:13 +05:30
|
|
|
config.h
|
|
|
|
default_ini.h
|
2014-08-24 06:52:05 +05:30
|
|
|
resource.h
|
|
|
|
)
|
|
|
|
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
2013-09-27 03:04:48 +05:30
|
|
|
|
2014-05-20 03:49:36 +05:30
|
|
|
add_executable(citra ${SRCS} ${HEADERS})
|
2017-05-28 06:56:55 +05:30
|
|
|
target_link_libraries(citra PRIVATE common core input_common)
|
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()
|