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
|
|
|
|
2015-08-29 01:27:08 +05:30
|
|
|
include_directories(${GLFW_INCLUDE_DIRS})
|
|
|
|
link_directories(${GLFW_LIBRARY_DIRS})
|
|
|
|
|
2014-05-20 03:49:36 +05:30
|
|
|
add_executable(citra ${SRCS} ${HEADERS})
|
2016-02-21 18:43:52 +05:30
|
|
|
target_link_libraries(citra core video_core audio_core common)
|
2015-08-30 12:07:42 +05:30
|
|
|
target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih glad)
|
2015-06-23 06:29:00 +05:30
|
|
|
if (MSVC)
|
|
|
|
target_link_libraries(citra getopt)
|
|
|
|
endif()
|
2014-12-24 15:04:25 +05:30
|
|
|
target_link_libraries(citra ${PLATFORM_LIBRARIES})
|
2014-05-01 05:26:25 +05:30
|
|
|
|
2015-07-10 00:49:02 +05:30
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD")
|
|
|
|
install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
2015-08-30 12:07:42 +05:30
|
|
|
endif()
|