Skip to content

Commit e01a445

Browse files
committed
CMake changes
1 parent d9538cb commit e01a445

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ endforeach()
1616
# need to pull in find scripts for SDL and SDL image
1717
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
1818

19+
# set the following to avoid warnings about SDL2main
20+
set(FPHSA_NAME_MISMATCHED TRUE)
21+
1922
# here are the packages needed to build apple2emu
2023
find_package(SDL2 REQUIRED)
2124
find_package(SDL2_image REQUIRED SDL2_image>=2.0.0)
@@ -69,26 +72,21 @@ set (EMU_SOURCES
6972

7073
add_executable(apple2emu ${EMU_SOURCES})
7174

72-
target_include_directories(apple2emu PUBLIC ${SDL2_INCLUDE_DIR})
73-
target_include_directories(apple2emu PUBLIC ${SDL2_IMAGE_INCLUDE_DIR})
7475
target_include_directories(apple2emu PUBLIC imgui)
7576
target_include_directories(apple2emu PUBLIC nativefiledialog/src/include)
7677
target_include_directories(apple2emu PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/libclipboard/include)
7778
target_include_directories(apple2emu PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/libclipboard/include)
7879

79-
target_include_directories(apple2emu SYSTEM PUBLIC ${GLEW_INCLUDE_DIR})
80-
target_include_directories(apple2emu SYSTEM PUBLIC ${OPENGL_INCLUDE_DIR})
81-
8280
set_target_properties(apple2emu PROPERTIES DEBUG_POSTFIX "_debug")
8381

8482
target_link_libraries(apple2emu
8583
${CURSES_LIBRARIES}
8684
imgui
8785
nfd
8886
clipboard
89-
${SDL2_IMAGE_LIBRARY}
90-
${SDL2_LIBRARY}
91-
${OPENGL_LIBRARIES}
87+
SDL2::Core
88+
SDL2::Image
89+
OpenGL::GL
9290
GLEW::GLEW)
9391

9492
get_filename_component(SDL2_DLL_PATH ${SDL2_LIBRARY} DIRECTORY)

libclipboard/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# libclipboard cmake configuration file
22

3-
cmake_minimum_required(VERSION 2.8)
43
project(libclipboard)
54

65
# Defines and options

0 commit comments

Comments
 (0)