File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ endforeach()
16
16
# need to pull in find scripts for SDL and SDL image
17
17
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake )
18
18
19
+ # set the following to avoid warnings about SDL2main
20
+ set (FPHSA_NAME_MISMATCHED TRUE )
21
+
19
22
# here are the packages needed to build apple2emu
20
23
find_package (SDL2 REQUIRED )
21
24
find_package (SDL2_image REQUIRED SDL2_image>=2.0.0 )
@@ -69,26 +72,21 @@ set (EMU_SOURCES
69
72
70
73
add_executable (apple2emu ${EMU_SOURCES} )
71
74
72
- target_include_directories (apple2emu PUBLIC ${SDL2_INCLUDE_DIR} )
73
- target_include_directories (apple2emu PUBLIC ${SDL2_IMAGE_INCLUDE_DIR} )
74
75
target_include_directories (apple2emu PUBLIC imgui )
75
76
target_include_directories (apple2emu PUBLIC nativefiledialog/src/include )
76
77
target_include_directories (apple2emu PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /libclipboard/include )
77
78
target_include_directories (apple2emu PUBLIC ${CMAKE_CURRENT_BINARY_DIR} /libclipboard/include )
78
79
79
- target_include_directories (apple2emu SYSTEM PUBLIC ${GLEW_INCLUDE_DIR} )
80
- target_include_directories (apple2emu SYSTEM PUBLIC ${OPENGL_INCLUDE_DIR} )
81
-
82
80
set_target_properties (apple2emu PROPERTIES DEBUG_POSTFIX "_debug" )
83
81
84
82
target_link_libraries (apple2emu
85
83
${CURSES_LIBRARIES}
86
84
imgui
87
85
nfd
88
86
clipboard
89
- ${SDL2_IMAGE_LIBRARY}
90
- ${SDL2_LIBRARY}
91
- ${OPENGL_LIBRARIES}
87
+ SDL2::Core
88
+ SDL2::Image
89
+ OpenGL::GL
92
90
GLEW::GLEW )
93
91
94
92
get_filename_component (SDL2_DLL_PATH ${SDL2_LIBRARY} DIRECTORY )
Original file line number Diff line number Diff line change 1
1
# libclipboard cmake configuration file
2
2
3
- cmake_minimum_required (VERSION 2.8 )
4
3
project (libclipboard )
5
4
6
5
# Defines and options
You can’t perform that action at this time.
0 commit comments