Skip to content

Commit

Permalink
Fixed the mistake I made earlier. CMake should build for non-apple ma…
Browse files Browse the repository at this point in the history
…chines.
  • Loading branch information
Stephen Hall committed Oct 14, 2013
1 parent 604afe5 commit 5f27e5a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ if(APPLE)
)
endif()
endif()

# Copy resources to build directory if build directory is
# different from source directory.
if(NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
file(COPY config/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/config/)
file(COPY res/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/res/)
if(NOT APPLE OR NOT BUILD_APPBUNDLE)
# Copy resources to build directory if build directory is
# different from source directory.
if(NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
file(COPY config/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/config/)
file(COPY res/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/res/)
endif()
add_executable(chesspp ${CHESSPP_SOURCES})
endif()

add_executable(chesspp ${CHESSPP_SOURCES})

target_link_libraries(chesspp ${SFML_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(chesspp ${SFML_LIBRARIES} ${Boost_LIBRARIES})

0 comments on commit 5f27e5a

Please sign in to comment.