Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Aug 16, 2023
1 parent a52b85e commit 6a1326e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ include_directories(experiment)

# Add executables
add_executable(experiment
experiment/main.m
experiment/main.m
experiment/telegram.m
experiment/telegram.h)
target_link_libraries(experiment "-framework Foundation")

# Set the properties for the target
set_target_properties(experiment PROPERTIES
COMPILE_FLAGS "${CMAKE_OBJC_FLAGS}"
LINK_FLAGS "${OBJC_FRAMEWORKS}"
COMPILE_FLAGS "${CMAKE_OBJC_FLAGS}"
LINK_FLAGS "${OBJC_FRAMEWORKS}"
)

# Add a custom target to run the executable
add_custom_target(run
COMMAND experiment
DEPENDS experiment
USES_TERMINAL
COMMAND experiment
DEPENDS experiment
USES_TERMINAL
)

0 comments on commit 6a1326e

Please sign in to comment.