1234567891011121314151617181920212223 |
- cmake_minimum_required(VERSION 3.13)
- project(dot-sort VERSION 0.4.0)
- set(CMAKE_CXX_STANDARD 17)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/static)
- include_directories(${CMAKE_SOURCE_DIR}/include)
- file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)
- find_package(SFML 2.5 COMPONENTS system window graphics REQUIRED)
- add_executable(dot_sort ${SOURCES})
- target_link_libraries(dot_sort sfml-window sfml-graphics sfml-system) #SFML libs
- target_link_libraries(dot_sort stdc++fs) #Lib std c++
- file(GLOB SPRITES ${CMAKE_SOURCE_DIR}/res/png/*)
- file(COPY ${SPRITES} DESTINATION "${CMAKE_BINARY_DIR}/bin/res")
|