Skip to content

Commit

Permalink
Update example CMake files
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBoer committed Aug 22, 2021
1 parent e6e821c commit c141b3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Examples/Features/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ set(
"SetUiFont.cpp"
"SetUiFont.h"
)
add_executable(Features WIN32 MACOSX_BUNDLE ${source_list})
target_link_libraries(Features PRIVATE ImFrame)
add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${source_list})
target_link_libraries(${PROJECT_NAME} PRIVATE ImFrame)

# Set compiler options
if(MSVC)
target_compile_options(Features PRIVATE /W4 /WX)
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX)
else()
target_compile_options(Features PRIVATE -Wall -Wextra -pedantic -Werror)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic -Werror)
endif()

# Create folder structure
Expand Down
8 changes: 4 additions & 4 deletions Examples/Minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ set(
source_list
"Main.cpp"
)
add_executable(Minimal WIN32 ${source_list})
target_link_libraries(Minimal PRIVATE ImFrame)
add_executable(${PROJECT_NAME} WIN32 ${source_list})
target_link_libraries(${PROJECT_NAME} PRIVATE ImFrame)

# Set compiler options
if(MSVC)
target_compile_options(Minimal PRIVATE /W4 /WX)
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX)
else()
target_compile_options(Minimal PRIVATE -Wall -Wextra -pedantic -Werror)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic -Werror)
endif()

# Create folder structure
Expand Down

0 comments on commit c141b3c

Please sign in to comment.