## Copyright (c) 2010 Jamie Jones ## ## This software is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This software is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 51 Franklin St, Fifth Floor, ## Boston, MA 02110-1301 USA ## ################################################################################ ######################### CMake Configuration ################################## CMAKE_MINIMUM_REQUIRED (VERSION 2.4) IF (COMMAND cmake_policy) CMAKE_POLICY (SET CMP0003 NEW) ENDIF (COMMAND cmake_policy) ################################################################################ ######################### Set Project Source ################################## ADD_DEFINITIONS (-DSNES_SPC_EXPORTS) FILE (GLOB SNES_SPC_SOURCES *.cpp) INCLUDE_DIRECTORIES (.) ################################################################################ ######################### Set Build Targets ################################## ADD_LIBRARY (snes_spc SHARED ${SNES_SPC_SOURCES} snes_spc.def) TARGET_LINK_LIBRARIES (snes_spc) INSTALL (TARGETS snes_spc RUNTIME DESTINATION ${BIN_DIR} LIBRARY DESTINATION ${LIB_DIR} ARCHIVE DESTINATION ${LIB_DIR})