2014-08-24 03:22:05 +02:00
|
|
|
set(SRCS
|
|
|
|
emu_window/emu_window_glfw.cpp
|
|
|
|
citra.cpp
|
2014-09-13 02:06:13 +02:00
|
|
|
config.cpp
|
2014-12-24 06:07:30 +01:00
|
|
|
citra.rc
|
2014-08-24 03:22:05 +02:00
|
|
|
)
|
|
|
|
set(HEADERS
|
|
|
|
emu_window/emu_window_glfw.h
|
2014-09-13 02:06:13 +02:00
|
|
|
config.h
|
|
|
|
default_ini.h
|
2014-08-24 03:22:05 +02:00
|
|
|
resource.h
|
|
|
|
)
|
|
|
|
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
2013-09-26 23:34:48 +02:00
|
|
|
|
2014-05-20 00:19:36 +02:00
|
|
|
add_executable(citra ${SRCS} ${HEADERS})
|
2014-08-24 03:22:05 +02:00
|
|
|
target_link_libraries(citra core common video_core)
|
2014-11-29 06:38:20 +01:00
|
|
|
target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih)
|
2014-05-01 01:56:25 +02:00
|
|
|
|
2014-12-13 23:02:22 +01:00
|
|
|
if (UNIX)
|
|
|
|
target_link_libraries(citra -pthread)
|
|
|
|
endif()
|
|
|
|
|
2014-05-01 01:56:25 +02:00
|
|
|
if (APPLE)
|
2014-12-13 23:02:22 +01:00
|
|
|
target_link_libraries(citra iconv ${COREFOUNDATION_LIBRARY})
|
2014-08-24 03:22:05 +02:00
|
|
|
elseif (WIN32)
|
2014-12-09 05:52:27 +01:00
|
|
|
target_link_libraries(citra winmm wsock32 ws2_32)
|
2014-12-30 04:59:14 +01:00
|
|
|
if (MINGW) # GCC does not support codecvt, so use iconv instead
|
2014-11-29 06:38:20 +01:00
|
|
|
target_link_libraries(citra iconv)
|
2014-12-09 05:52:27 +01:00
|
|
|
endif()
|
2014-08-24 03:22:05 +02:00
|
|
|
else() # Unix
|
2014-12-13 23:02:22 +01:00
|
|
|
target_link_libraries(citra rt)
|
2014-05-01 01:56:25 +02:00
|
|
|
endif()
|
2013-09-26 23:34:48 +02:00
|
|
|
|
|
|
|
#install(TARGETS citra RUNTIME DESTINATION ${bindir})
|