Skip to content

Commit

Permalink
Updated cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Rises committed Jun 11, 2023
1 parent a81af48 commit 5f0b7ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,4 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

project(CubeAscii)

cmake_policy(SET CMP0079 NEW)

add_subdirectory(${PROJECT_NAME})

if (WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE winmm.lib)
endif ()
8 changes: 6 additions & 2 deletions CubeAscii/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
add_executable(CubeAscii main.c)
add_executable(${PROJECT_NAME} main.c)

if (UNIX)
target_link_libraries(CubeAscii m)
target_link_libraries(${PROJECT_NAME} m)
endif (UNIX)

if (WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE winmm.lib)
endif ()

0 comments on commit 5f0b7ff

Please sign in to comment.