Skip to content

Commit

Permalink
Merge pull request #260 from kimkulling/feature/cmake_cleanups
Browse files Browse the repository at this point in the history
Update CMakeLists.txt
  • Loading branch information
kimkulling authored Dec 30, 2024
2 parents abf1395 + bc53620 commit 34cb7ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ SET( LIB_INSTALL_DIR "lib" CACHE PATH "Path the built library files are ins
SET( INCLUDE_INSTALL_DIR "osre" CACHE PATH "Path the header files are installed to." )
SET( BIN_INSTALL_DIR "bin" CACHE PATH "Path the tool executables are installed to." )

# Set the default build output folders
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin )

INCLUDE_DIRECTORIES( BEFORE
include/
/usr/include/
Expand All @@ -47,10 +52,6 @@ link_directories(
${SDL2_LIBRARIES}
)

SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin )

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT CMAKE_COMPILER_IS_MINGW)
Expand Down

0 comments on commit 34cb7ce

Please sign in to comment.