2014-06-25 16:29:58 +00:00
project ( "emulationstation" )
set ( ES_HEADERS
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / E m u l a t i o n S t a t i o n . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e D a t a . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e S o r t s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M e t a D a t a . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / P l a t f o r m I d . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S c r a p e r C m d L i n e . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S y s t e m D a t a . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / V o l u m e C o n t r o l . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / G a m e l i s t . h
2017-03-18 17:54:39 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e F i l t e r I n d e x . h
2016-12-14 08:30:54 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S y s t e m S c r e e n S a v e r . h
2017-06-12 16:38:59 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / C o l l e c t i o n S y s t e m M a n a g e r . h
2014-06-25 16:29:58 +00:00
# GuiComponents
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / A s y n c R e q C o m p o n e n t . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / R a t i n g C o m p o n e n t . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / S c r a p e r S e a r c h C o m p o n e n t . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / T e x t L i s t C o m p o n e n t . h
# Guis
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i F a s t S e l e c t . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e t a D a t a E d . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e S c r a p e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t O p t i o n s . h
2017-06-01 20:08:44 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r e e n s a v e r O p t i o n s . h
2017-09-09 03:45:50 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G e n e r a l S c r e e n s a v e r O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i V i d e o S c r e e n s a v e r O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S l i d e s h o w S c r e e n s a v e r O p t i o n s . h
2014-06-25 16:29:58 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e n u . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S e t t i n g s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r M u l t i . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r S t a r t . h
2017-03-18 17:54:39 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t F i l t e r . h
2017-06-12 16:38:59 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i C o l l e c t i o n S y s t e m s O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i I n f o P o p u p . h
2014-06-25 16:29:58 +00:00
# Scrapers
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r a p e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / G a m e s D B S c r a p e r . h
2019-01-11 19:51:05 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r e e n S c r a p e r . h
2014-06-25 16:29:58 +00:00
# Views
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / B a s i c G a m e L i s t V i e w . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / D e t a i l e d G a m e L i s t V i e w . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / I G a m e L i s t V i e w . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / I S i m p l e G a m e L i s t V i e w . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / G r i d G a m e L i s t V i e w . h
2016-12-04 23:47:34 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / V i d e o G a m e L i s t V i e w . h
2014-06-25 16:29:58 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / S y s t e m V i e w . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / V i e w C o n t r o l l e r . h
2017-11-18 22:23:56 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / U I M o d e C o n t r o l l e r . h
2014-06-25 16:29:58 +00:00
# Animations
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / a n i m a t i o n s / L a u n c h A n i m a t i o n . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / a n i m a t i o n s / M o v e C a m e r a A n i m a t i o n . h
)
set ( ES_SOURCES
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e D a t a . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e S o r t s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / m a i n . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M e t a D a t a . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / P l a t f o r m I d . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S c r a p e r C m d L i n e . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S y s t e m D a t a . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / V o l u m e C o n t r o l . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / G a m e l i s t . c p p
2017-03-18 17:54:39 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e F i l t e r I n d e x . c p p
2016-12-14 08:30:54 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S y s t e m S c r e e n S a v e r . c p p
2017-06-12 16:38:59 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / C o l l e c t i o n S y s t e m M a n a g e r . c p p
2014-06-25 16:29:58 +00:00
# GuiComponents
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / A s y n c R e q C o m p o n e n t . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / R a t i n g C o m p o n e n t . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / c o m p o n e n t s / S c r a p e r S e a r c h C o m p o n e n t . c p p
# Guis
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i F a s t S e l e c t . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e t a D a t a E d . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e S c r a p e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t O p t i o n s . c p p
2017-06-01 20:08:44 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r e e n s a v e r O p t i o n s . c p p
2017-09-09 03:45:50 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G e n e r a l S c r e e n s a v e r O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i V i d e o S c r e e n s a v e r O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S l i d e s h o w S c r e e n s a v e r O p t i o n s . c p p
2014-06-25 16:29:58 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e n u . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S e t t i n g s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r M u l t i . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r S t a r t . c p p
2017-03-18 17:54:39 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t F i l t e r . c p p
2017-06-12 16:38:59 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i C o l l e c t i o n S y s t e m s O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i I n f o P o p u p . c p p
2014-06-25 16:29:58 +00:00
# Scrapers
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r a p e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / G a m e s D B S c r a p e r . c p p
2019-01-11 19:51:05 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r e e n S c r a p e r . c p p
2014-06-25 16:29:58 +00:00
# Views
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / B a s i c G a m e L i s t V i e w . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / D e t a i l e d G a m e L i s t V i e w . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / I G a m e L i s t V i e w . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / I S i m p l e G a m e L i s t V i e w . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / G r i d G a m e L i s t V i e w . c p p
2016-12-04 23:47:34 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / g a m e l i s t / V i d e o G a m e L i s t V i e w . c p p
2014-06-25 16:29:58 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / S y s t e m V i e w . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / V i e w C o n t r o l l e r . c p p
2017-11-18 22:23:56 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / U I M o d e C o n t r o l l e r . c p p
2014-06-25 16:29:58 +00:00
)
#-------------------------------------------------------------------------------
# define OS specific sources and headers
if ( MSVC )
LIST ( APPEND ES_SOURCES
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / E m u l a t i o n S t a t i o n . r c
)
endif ( )
#-------------------------------------------------------------------------------
# define target
include_directories ( ${ COMMON_INCLUDE_DIRS } ${ CMAKE_CURRENT_SOURCE_DIR } /src )
add_executable ( emulationstation ${ ES_SOURCES } ${ ES_HEADERS } )
target_link_libraries ( emulationstation ${ COMMON_LIBRARIES } es-core )
# special properties for Windows builds
if ( MSVC )
2017-05-18 10:16:57 +00:00
# Always compile with the "WINDOWS" subsystem to avoid console window flashing at startup
2014-11-25 02:49:11 +00:00
# when --debug is not set (see es-core/src/main.cpp for explanation).
# The console will still be shown if launched with --debug.
# Note that up to CMake 2.8.10 this feature is broken: http://public.kitware.com/Bug/view.php?id=12566
set_target_properties ( emulationstation PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:WINDOWS" )
set_target_properties ( emulationstation PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:WINDOWS" )
2014-06-25 16:29:58 +00:00
set_target_properties ( emulationstation PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS" )
set_target_properties ( emulationstation PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS" )
endif ( )
#-------------------------------------------------------------------------------
# set up CPack install stuff so `make install` does something useful
install ( TARGETS emulationstation
R U N T I M E
D E S T I N A T I O N b i n )
INCLUDE ( InstallRequiredSystemLibraries )
SET ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "A flexible graphical emulator front-end" )
SET ( CPACK_PACKAGE_DESCRIPTION "EmulationStation is a flexible, graphical front-end designed for keyboardless navigation of your multi-platform retro game collection." )
SET ( CPACK_RESOURCE_FILE LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md" )
SET ( CPACK_RESOURCE_FILE README "${CMAKE_CURRENT_SOURCE_DIR}/README.md" )
SET ( CPACK_DEBIAN_PACKAGE_MAINTAINER "Alec Lofquist <allofquist@yahoo.com>" )
SET ( CPACK_DEBIAN_PACKAGE_SECTION "misc" )
SET ( CPACK_DEBIAN_PACKAGE_PRIORITY "extra" )
2018-01-29 22:50:10 +00:00
SET ( CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libsdl2-2.0-0, libfreeimage3, libfreetype6, libcurl3, libasound2" )
SET ( CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS "debhelper (>= 8.0.0), cmake, g++ (>= 4.8), libsdl2-dev, libfreeimage-dev, libfreetype6-dev, libcurl4-openssl-dev, libasound2-dev, libgl1-mesa-dev" )
2014-06-25 16:29:58 +00:00
SET ( CPACK_PACKAGE_VENDOR "emulationstation.org" )
SET ( CPACK_PACKAGE_VERSION "2.0.0~rc1" )
SET ( CPACK_PACKAGE_VERSION_MAJOR "2" )
SET ( CPACK_PACKAGE_VERSION_MINOR "0" )
SET ( CPACK_PACKAGE_VERSION_PATCH "0" )
SET ( CPACK_PACKAGE_INSTALL_DIRECTORY "emulationstation_${CMAKE_PACKAGE_VERSION}" )
SET ( CPACK_PACKAGE_EXECUTABLES "emulationstation" "emulationstation" )
SET ( CPACK_GENERATOR "TGZ;DEB" )
INCLUDE ( CPack )