--- gui-wx/CMakeLists.txt.orig 2015-05-11 19:32:36 UTC +++ gui-wx/CMakeLists.txt @@ -116,7 +116,8 @@ if(APPLE) endif() if(APPLE OR UNIX) # use same settings as in makefiles - add_definitions(-D_LARGE_FILES -O5) + add_definitions(-D_LARGE_FILES -DPYTHON_SHLIB=${PYTHON_LIBRARY} + -DPERL_SHLIB=${PERL_LIBRARY} ) endif() # workaround for wx2.9.3 wxAssert link errors, see http://trac.wxwidgets.org/ticket/12626 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DwxDEBUG_LEVEL=0") @@ -153,6 +154,13 @@ add_executable( bgolly target_link_libraries( ${APP_NAME} gollybase ${wxWidgets_LIBRARIES} ${ZLIB_LIBRARIES} ) target_link_libraries( bgolly gollybase ${ZLIB_LIBRARIES} ) +if (UNIX) + install(TARGETS bgolly RUNTIME DESTINATION bin) + install(TARGETS ${APP_NAME} RUNTIME DESTINATION share/golly) + install(DIRECTORY ../Help ../Patterns ../Rules ../Scripts DESTINATION share/golly) + install(FILES icons/appicon.xpm DESTINATION share/pixmaps RENAME golly.xpm) +endif() + if(APPLE) # create Info.plist (using Info.plist.in) and PkgInfo files inside .app bundle add_custom_target( app_bundle