Skip to content

Commit

Permalink
uniform CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
matekelemen committed Sep 17, 2023
1 parent 1cbb8b9 commit 058f3d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ find_package(linalg CONFIG REQUIRED)
find_package(OpenGL REQUIRED)
find_package(glm REQUIRED)

# Build main library
# Build main executable
file(GLOB_RECURSE sources "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
add_executable(${PROJECT_NAME} ${sources})

Expand All @@ -45,6 +45,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE cie::ciegl)
target_include_directories(${PROJECT_NAME} PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")

set_target_properties(${PROJECT_NAME} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
INSTALL_RPATH "$ORIGIN/../lib;$ORIGIN/../bin")
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "cie/bin")
Expand Down

0 comments on commit 058f3d5

Please sign in to comment.