Skip to content

Commit

Permalink
Fix linux build and package
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Sep 2, 2013
1 parent 9a6c88c commit e960277
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ Makefile
Makefile.*
cdogs-sdl
*.exe
*.tar.gz
cdogs-sdl-editor
libcdogs.a
autosave_test
color_test
config_test
tmp
libjson.a
.cdogs/
*.so

# CMake stuff
*CMakeCache.txt
Expand Down
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ set_target_properties(hqx PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_BINARY_DIR}/src
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR}/src
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src
)

if(WIN32)
Expand All @@ -121,7 +122,9 @@ else()
set(EXE_EXTENSION "")
set(LIB_EXTENSION ".so")
endif()
install(FILES src/cdogs-sdl${EXE_EXTENSION} src/cdogs-sdl-editor${EXE_EXTENSION} src/libhqx${LIB_EXTENSION} DESTINATION bin)
install(
PROGRAMS src/cdogs-sdl${EXE_EXTENSION} src/cdogs-sdl-editor${EXE_EXTENSION} src/libhqx${LIB_EXTENSION}
DESTINATION bin)

# Installation
INSTALL(DIRECTORY
Expand All @@ -141,7 +144,7 @@ IF(UNIX AND NOT APPLE)
INSTALL(FILES
${SOURCE_DIRECTORY}/build/linux/cdogs-sdl.desktop
${SOURCE_DIRECTORY}/cdogs_icon.png
DESTINATION .)
DESTINATION bin)
ENDIF()
IF(MSVC)
# Package for Windows
Expand Down

0 comments on commit e960277

Please sign in to comment.