25 lines
757 B
CMake
25 lines
757 B
CMake
#* From https://github.com/ttroy50/cmake-examples this falls under MIT License
|
|
# Set the minimum version of CMake that can be used
|
|
# To find the cmake version run
|
|
# $ cmake --version
|
|
cmake_minimum_required(VERSION 3.28)
|
|
|
|
# Set the project name
|
|
project (seam-carving)
|
|
|
|
# Add an executable with the above sources
|
|
add_executable(seam-carving src/seam-carving.cpp)
|
|
add_library(utils src/utils.cpp)
|
|
|
|
# Set the directories that should be included in the build command for this target
|
|
# when running g++ these will be included as -I/directory/path/
|
|
target_include_directories(seam-carving
|
|
PRIVATE
|
|
${PROJECT_SOURCE_DIR}/deps
|
|
)
|
|
target_link_libraries(seam-carving utils)
|
|
|
|
target_include_directories(utils
|
|
PRIVATE
|
|
${PROJECT_SOURCE_DIR}/deps
|
|
) |