Skip to content

Commit

Permalink
Clean up project, fix CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
iechevarria committed Nov 6, 2017
1 parent a1a7d7b commit 0e2aee9
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 24 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions .idea/Clear.iml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ link_libraries(${SFML_LIBRARIES})

if(NOT SFML_FOUND)
# SFML not found
message(FATAL_ERROR " * Make sure LIB includes the directory where the SFML libraries are installed.\n * Make sure INCLUDE includes the directory where the SFML header files are installed.")
message(FATAL_ERROR " * Make sure LIB includes the directory where the SFML libraries are installed.\n * Make sure INCLUDE includes the directory where the SFML header files are installed.")
endif()

###############
Expand All @@ -69,8 +69,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# determine build type
# 1) use build type if specified by the user.
# 2) if in-source building, use default (debug) build type.
# 3) if out-source building, determine based on the build directory's name which build type.
# If build directory is called 'Release' or 'Profile' then use the 'Release' and 'Profile'
# 3) if out-source building, determine based on the build directory's name which build type.
# If build directory is called 'Release' or 'Profile' then use the 'Release' and 'Profile'
# build type respectively, otherwise use 'debug'.
if(CMAKE_BUILD_TYPE)
string(TOUPPER "${CMAKE_BUILD_TYPE}" TYPE)
Expand Down Expand Up @@ -111,7 +111,7 @@ endif()
# executables (any CPP file in 'bin' dir)
foreach(EXEC ${EXECLIST})
get_filename_component(EXECNAME ${EXEC} NAME_WE)
add_executable(${EXECNAME} ${EXEC} bin/clear.cpp)
add_executable(${EXECNAME} ${EXEC} bin/Clear.cpp)

if(NOT SRC STREQUAL "")
target_link_libraries(${EXECNAME} LINK_PUBLIC ${LIBNAME})
Expand Down
Binary file removed bin/.DS_Store
Binary file not shown.
Binary file removed resources/.DS_Store
Binary file not shown.
Binary file removed src/.DS_Store
Binary file not shown.

0 comments on commit 0e2aee9

Please sign in to comment.