diff --git a/CMakeLists.txt b/CMakeLists.txt index 67365d8..9c37c94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) @@ -45,6 +45,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE cie::ciegl) target_include_directories(${PROJECT_NAME} PRIVATE "$") 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")