2014-08-24 06:52:05 +05:30
|
|
|
set(SRCS
|
|
|
|
emu_window/emu_window_glfw.cpp
|
|
|
|
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
|
|
|
|
emu_window/emu_window_glfw.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})
|
2014-08-24 06:52:05 +05:30
|
|
|
target_link_libraries(citra core common video_core)
|
2014-11-29 11:08:20 +05:30
|
|
|
target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih)
|
2014-05-01 05:26:25 +05:30
|
|
|
|
2014-12-14 03:32:22 +05:30
|
|
|
if (UNIX)
|
|
|
|
target_link_libraries(citra -pthread)
|
|
|
|
endif()
|
|
|
|
|
2014-05-01 05:26:25 +05:30
|
|
|
if (APPLE)
|
2014-12-14 03:32:22 +05:30
|
|
|
target_link_libraries(citra iconv ${COREFOUNDATION_LIBRARY})
|
2014-08-24 06:52:05 +05:30
|
|
|
elseif (WIN32)
|
2014-12-09 10:22:27 +05:30
|
|
|
target_link_libraries(citra winmm wsock32 ws2_32)
|
2014-12-30 09:29:14 +05:30
|
|
|
if (MINGW) # GCC does not support codecvt, so use iconv instead
|
2014-11-29 11:08:20 +05:30
|
|
|
target_link_libraries(citra iconv)
|
2014-12-09 10:22:27 +05:30
|
|
|
endif()
|
2014-08-24 06:52:05 +05:30
|
|
|
else() # Unix
|
2014-12-14 03:32:22 +05:30
|
|
|
target_link_libraries(citra rt)
|
2014-05-01 05:26:25 +05:30
|
|
|
endif()
|
2013-09-27 03:04:48 +05:30
|
|
|
|
|
|
|
#install(TARGETS citra RUNTIME DESTINATION ${bindir})
|